Hi,
I am using Javascript for Excel Export from classic ASP.
In my excel i have many Date columns that i need to store based on the regional settings.
The application also allow us to set the dates in a format but this should be overridden with the regional Settings for the date.
I have used toLocaleString( ) to convert the dates but for dd/mm/yyyy if i have some dates like 04/12/2010 its converting that to 12/4/2010 not happening for all but especially for this. Could anyone please provide me the code that will convert the date to regional settings regardless of how they are coming from the application?
Thanks...
I am using Javascript for Excel Export from classic ASP.
In my excel i have many Date columns that i need to store based on the regional settings.
The application also allow us to set the dates in a format but this should be overridden with the regional Settings for the date.
I have used toLocaleString( ) to convert the dates but for dd/mm/yyyy if i have some dates like 04/12/2010 its converting that to 12/4/2010 not happening for all but especially for this. Could anyone please provide me the code that will convert the date to regional settings regardless of how they are coming from the application?
Thanks...
Comment