Skip to content

Instantly share code, notes, and snippets.

@shashilatha
shashilatha / gist:808dfeb6ac0fc660c3f7
Created December 3, 2014 13:56
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