Hello,
Currently I have a asp application that uses javascript to validate the current date. Part of the javascript allows the user to change the current date format which is mm/dd/yyyy to mm/dd/yy. Once the user tabs to the next field then the javascript changes the short date format of what the user entered back to the long date format.
Example: The field display's today's date 02/14/2008. Now the user needs to change the date to 02/11/08. The users are use to entering the short date format. The javascript then converts the short date format to long date. So now the field will display 02/11/2008.
The problem is that now since it has been the year 2008 the javascript changes the short date format of 02/11/08 to 02/11/2000. All the other previous years this javascript has worked but now since it is 2008 the javascript converts 08 to 2000.
Help please. It is really affecting the ability to generate correct analysis.
Currently I have a asp application that uses javascript to validate the current date. Part of the javascript allows the user to change the current date format which is mm/dd/yyyy to mm/dd/yy. Once the user tabs to the next field then the javascript changes the short date format of what the user entered back to the long date format.
Example: The field display's today's date 02/14/2008. Now the user needs to change the date to 02/11/08. The users are use to entering the short date format. The javascript then converts the short date format to long date. So now the field will display 02/11/2008.
The problem is that now since it has been the year 2008 the javascript changes the short date format of 02/11/08 to 02/11/2000. All the other previous years this javascript has worked but now since it is 2008 the javascript converts 08 to 2000.
Help please. It is really affecting the ability to generate correct analysis.