calendar

Integrating with Calendars - From database application

We develop a small business database application with PowerBuilder. Part of the functionality includes scheduling appointments (a secretary schedules an appointment for her doctor via our application). The scheduling appointment is stored as a database record and viewable/editable via our application. Pretty standard stuff. We would...

Is there anything wrong with the way I'm implementing a Calendar on my site?

I am setting up a website for students of a school, which must include a schedule page which will show a calendar with events populated by feeds from various teachers' calendars. After trying out a variety of scripts and tools made for showing calendars, I finally hit upon a very shoddy, hacked-together way of doing it, and I want to kno...

Should I use Calendar.compareTo() to compare dates?

Is it a valid way of comparing dates: Calendar someCalendar1 = Calendar.getInstance(); // current date/time someCalendar1.add(Calendar.DATE, -14); Calendar someCalendar2 = Calendar.getInstance(); someCalendar2.setTime(someDate); // someDate is in the format of MM/dd/yyyy if(someCalendar2.compareTo(someCalendar1) < 0){ ...Code... ...

Calculating a month as a "between" period in java

I want to select records that have a created date between the first and the last day of a given month. I calculate the month with begin and enddate the following way: The Date "month" is just a random date inside the timeframe Calendar cal = Calendar.getInstance(); cal.setTime(month); int endday = cal.getActualMaximum(Calendar.DAY_OF_M...

Recommendation for the best multi month JavaScript plugin / solution?

I am porting over a site from ASP.NET to ASP.NET MVC. In the old site they used this calendar below and showed multiple months in one calendar: http://www.obout.com/calendar/calendar%5Fhome.aspx Any recommended solutions to replicate this in ASP.NET MVC with similar functionality? ...

Getting Day from a Date Object

I wanna see if someDate has any day in it. Am I checking it right? Calendar cal = Calendar.getInstance(); cal.setTime(someDate); // someDate is a Date int day = cal.get(Calendar.DAY_OF_MONTH); if(day == 0){ // code // } ...

Add LinkButtons during OnDayRender event of ASP.NET Calendar Control

Hi, So I need to add some link buttons to each cell of a asp:calendar control dynamically based on data in the database. I wondering what the best way to do this is so that the the link buttons will be wired up to their events on postbacks (as to my knowledge creating the link buttons on the Day Render event and adding them there will ...

SmartGWT Calendar Width and Height

I've tried setting an explicit width and height to the calendar widget in the SmartGWT library using calendar.setWidth(500) and calendar.setHeight(400) to no avail. Any ideas why this wouldn't work? Thanks! ...

Dynamically adding a UserControl to the DayRender event of the Calendar Control

I have a simple UserControl that I'd like to render in each calendar cell. I'd like it render different information based on a data set by passing changing some properties exposed on the UserControl. For some reason this isn't working. I'm wondering if the page cycle is preventing this from working correctly as it seems to work if I load...

Parsing Outlook calendars for an in/out calendar

I've written some VBA which generates an HTML based in/out calendar for all the members of my team. Because I need to get the status of people for the whole year and details of their appointments I've avoided using the FreeBusy information and instead opted to open each users calendar, extract all the appointments and work out which days...

Sample for Full Calendar in jquery

I am trying to integrate the jquery Full Calendar (http://arshaw.com/fullcalendar/) in my asp.net mvc application. I need to use this full calendar to add/edit/delete/show the events using the sql server database as backend. Do anyone have the sample code to implement the add/edit/delete events with this Full Calendar.? ...

iphone : customize the calendar pick up date

Hi, My client would like that the user could pick up a date in an iphone app. He wants that all the days of the month appear. Moreover he would like to switch to the next or previous month. How would it possible to do that ? Moreover he would like that in the calendar some days of the month (for ex. the 1rst, the 9th and the 15th) app...

Get Jquery UI Calendar to Show on Top of Modal Popup.

Hi have a JQuery modal popup that I load HTML into. I have the following code in my scrpt file: //date code - move to reusable. $('.dateDavy').datepicker({ showOn: 'button', buttonImage: '/Content/images/Control_MonthCalendar.bmp', buttonText: 'Enter Date', buttonImageOnly: true, dateFormat...

time table / datebook as in Sunbird for Qt?

I would like to implement a calendar in my Qt-based program as it is already implement in Mozilla Sunbird (different colors and categories are important). Is there any "simple" possibility to realize that or do I have to create it all by myself, beginning at zero? Is there a good tutorial to create such a calendar with standards, so tha...

jquery Full Calendar not showing events

I am using asp.net mvc to list the events in the jquery full calendar. Below is the script i am using to list the events through json from mvc. $('#calendar').fullCalendar({ theme: true, editable: true, disableDragging: true, disableResizing: true, header: { left: 'prev,next today', center: 'title', right: 'month,bas...

DateTimePicker ValueChanged event fires the first time when there is no change.

Winforms 2.0. Stick a DateTimePicker on a form. It defaults to TODAY. Click on the dropdown arrow to show the Calendar, and click on TODAY. The ValueChanged event DOES FIRE, even though it is already set to today. What i would like to do is replicate this same functionality - I would like to reset it (in code) to today, and next time i ...

How to best model and search seasonal availability with Rails

So I have an app where I am tracking a number of things, including flowers. Depending on the type of flower they can be available from places during certain spans of time during the year. Sometimes they can even be available during multiple spans of time (eg domestically from Mar-Jun, but can be found internationally from Sept-Dec). W...

With .ics files can I delete old events?

Im currently working on an .ics export from our application. Can I somehow delete old events, so in my first import into outlook I have 152 events and during my second import I only have 100 events. Then I would like the import to automatically delete all 52 events from Outlook, is this possible? I know that I can make events canceled,...

what is the c# equivalent of Calendar in java?

I am converting Java to C# and need to convert code involving Calendar: Calendar rightNow = Calendar.getInstance(); StringBuilder sb = new StringBuilder(); sb.append((rightNow.get(Calendar.MONTH) + 1)); sb.append(rightNow.get(Calendar.DAY_OF_MONTH)); sb.append(rightNow.get(Calendar.YEAR)).substring(2); sb.append(rightNow.get(Calendar.HO...

Wpf Calendar Control Customization

Hello All I have a calendar control (WPFToolkit) in a wpf form and I need to put a "Today" button in it. Is there a way to di that? Thank you in advance ...