##
Home | About | Search | Contact Us

## Softricks Popup Date Picker Demo Page

Control String: AppendOrReplace=Replace;AppendChar=';';CloseOnSelect=Yes;ReturnData=Date;Title=Calendar;InlineX=400;InlineY=200;SelectAfter=Today-360;SelectBefore=Today+360;AllowWeekends=No;Resizable=Yes;CallFunction=TryCallFunction;PopupX=300;PopupY=300;Nav=Yes;SmartNav=Yes;ShowFix=Yes;Fix=Yes;WeekStart=1;Weekends=06;ShortNames=No;Holidays=0901,1225,0101,0704,1008;AllowHolidays=Yes;Language=E;Stylesheet=Calendar.css;
Date Format:
Month:
Year:

Selection #1:

If you select a date format with '-' as a separator, such as MM-DD-YYYY, this example can split the returned date into Day, Month and Year. This is achieved by a Javascript stub written in this page which gets called when a date is selected from the calendar. You can specify your stub by using the 'CallFunction' setting in the 6th parameter to the 'show_calendar' function.

Selection #2:

Demo of how to select a 'From date' and a 'To date'.
Note: The calendars invoked by the 2 links below use different date formats: the first one uses 'MM/DD/YYYY' and the second one uses 'YYYY-MM-DD' as the default date format.
The first link uses the 'Selection #1' date field as the initial date when it opens. The second link uses an arbitrary date constant '2002-04-22' as the initial date. This is to demonstrate the 'CurrentDate' setting in the 6th parameter of 'show_calendar' function.
From --- To

Check our Tutorial on more details on usage.

Copyright ©Softricks.com 2000-2005, All rights reserved.