Skip to content

Instantly share code, notes, and snippets.

@shashilatha
Created December 3, 2014 13:56
Show Gist options
  • Save shashilatha/808dfeb6ac0fc660c3f7 to your computer and use it in GitHub Desktop.
Save shashilatha/808dfeb6ac0fc660c3f7 to your computer and use it in GitHub Desktop.
I get invalid Date as Mon Jan 1 00:00:00 UTC 1900
Hi,
After calling the function also it returns me date as "Mon Jan 1 00:00:00 UTC 1900". My datevalues in excel is 11/26/2014 6:00:02 AM
My Code
var strDatetimeUTC=excel_file.worksheets(1).Cells(i,12).Value; //Returns 1
getJsDateFromExcel(strDatetimeUTC);//returns Mon Jan 1 00:00:00 UTC 1900
Could you please help me to fix this.
Thanks,
Shashi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment