|
A new start
|
Year 2009 is a new start for my little Javascript Date Time Picker, it has been around since November of 2003. Well, it has been free since then too. Let me again make it very clear here, This piece of Javascript code is completely free! I don't care if you are using it for personal or even commercial. The ONLY condition which you have to fulfill is the header part of this javascript remain as it is. So, what's so new about this Javascript Date Time Picker? The Calender is no longer in Pop Up window. It is now fully in CSS form. That is something that I wanted to do quite some time but I did has the time to do it. This great improvement was contributed by Yvan Lavoie of Québec, Canada. Thanks Yvan! Please see more examples in the Demo Page
|
|
Tailor the Calendar to your needs
|
If you need my assistance to tailor the calendar to your needs at a cost, feel free to write to me.
|
|
Some features highlights
|
- Fully CSS - Kiss Popup Window Goodbye!
- Rich Date and Time Format - Supported 6 Date formats and 2 time formats.
- Two Navigation Styles - Allow users to choose preferred month/year scroller. (Arrow|DropDown)
- Preceding Zero - Allow users to customize if to place preceding zero for date and month.
- Colour your calendar - Allow users to customize color of elements in the calendar easily.
- Date Separator - Allow users to set any character as Date Separator.
- Sunday or Monday First - Allows users to choose if Monday or Sunday as first day of a week.
- Multilingual - Allow users to configure Calendar in different languages.
|
|
How to use ?
|
|
|
|
Parameters that you can use
|
|
There are couple of parameters that you can use to make your date picker / date time picker according to your needs.
The One and Only Mandatory parameter is "Textbox Unique ID"
NewCssCal([Textbox Unique ID] , [Date format] , [Display time in calendar (true | false)] , [Time mode (12 | 24)] , [Navigation ('Arrow' | 'DropDown')] , [Hide Seconds (true | false)] ])
Optional parameters and their default value
| [Date Format] |
MMddyyyy |
ddMMyyyy, ddMMMyyyy, MMddyyyy, MMMddyyyy, yyyyMMdd, yyyyMMMdd
|
| [Navigation] |
'DropDown' |
'DropDown' or 'Arrow'
|
| [Display time in calendar] |
false |
true or false
|
| [Time mode] |
24 |
12 or 24
|
| [Hide Seconds] |
false |
true of false
|
|
|
|
|
Customize your own and have fun!
If you have little bit of javascript and html knowledge. You will be able to customize the calendar look by yourself. The first step is to open DateTimePicker.js file itself and you'll find "configurable parameters" section at the header.
var SpanBorderColor = "#cdcdcd"; var SpanBgColor = "#cdcdcd"; var WeekChar=2; var DateSeparator="-"; var ShowLongMonth=true; var ShowMonthYear=true; var MonthYearColor="#cc0033"; var WeekHeadColor="#0099CC"; var SundayColor="#6699FF"; var SaturdayColor="#CCCCFF"; var WeekDayColor="white"; var FontColor="blue"; var TodayColor="#FFFF33"; var SelDateColor="#FFFF99"; var YrSelColor="#cc0033"; var MthSelColor="#cc0033"; var ThemeBg=""; var PrecedeZero=true; var MondayFirstDay=false; var UseImageFiles = true; var MonthName=["January", "February", "March", "April", "May", "June","July","August", "September", "October", "November", "December"]; var WeekDayName1=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]; var WeekDayName2=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"];
|
|
|
Download sample
|
|
Click that big download button to download Javascript Date Time Picker 2.0 with sample HTML page.
|
 |
|
|