Title: transform 2 digit year to 4 digit year Post by: leela on May 30, 2014, 07:06:44 AM Hi,
When the user enters a value manually in the datebox field as 2/2/14, right now the calendar points to Feb 2nd 1914. How can I instruct it to point to 20th century? Also if the user enters the value as 2/2/14, it should be transformed to mm/dd/yyyy as 02/02/2014. How can I achieve this? Title: Re: transform 2 digit year to 4 digit year Post by: stworthy on May 31, 2014, 07:26:20 AM To custom the default behavior of datebox, you have to override the 'formatter' and 'parser' functions. Try the code below:
Code: $('#dd').datebox({ Title: Re: transform 2 digit year to 4 digit year Post by: leela on June 02, 2014, 09:59:36 AM Hi,
When the user enters the value as 2/3/14 manually, how do I transform and display it to mm/dd/yyyy format as 02/02/2014? Is it possible? Thanks in advance! Title: Re: transform 2 digit year to 4 digit year Post by: leela on June 02, 2014, 01:37:51 PM I did the following to make the formatter work for both selected date from calendar, and user entered input and also apply validation for both
Code: onHidePanel:function(){ Please feel free to write your comments. |