次の形式のタイムスタンプがあり
ます
。 2015 09:04:17 GMT +5:30]:
現在、次のコードを使用して解析していますが、Firefox 3.6 以降のブラウザーで問題なく動作します。しかし問題は、Internet Explorer (IE) 8 では機能せず、IE では 'NaN' を返すことです。
私のJavascriptコードは次のとおりです。
var myDate = new Date(timestampDate);
//In Firefox i get myDate as Date object and i can get day, month and year. But in IE this myDate value is coming as NaN
var day = myDate.getDate();
var month = myDate.getMonth();
var year = myDate.getFullYear();
どんな助けも報われます。これをIEでも機能させるための解決策を教えてください。