Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
RSS フィードから取得したこのような日付文字列があります...
Thu, 03 Oct 2013 05:00:00 GMT
そして、タイムスタンプ+GMTを外したい。
私は今これをGMT部分に使用しています...
.replace('GMT', '');
しかし、使用する必要がある正規表現があるかどうか、または単純なトリムまたはスライスがここで役立つかどうか疑問に思っています。最善の解決策を完全に考えることができません。
できるよ:
.slice(0, -4); // This will remove the last 4 character in the string.