エントリーの編集
エントリーの編集は全ユーザーに共通の機能です。
必ずガイドラインを一読の上ご利用ください。
2つのDateオブジェクトが同じ日か否かを判定する - monjudoh’s diary
記事へのコメント0件
- 注目コメント
- 新着コメント
このエントリーにコメントしてみましょう。
注目コメント算出アルゴリズムの一部にLINEヤフー株式会社の「建設的コメント順位付けモデルAPI」を使用しています
- バナー広告なし
- ミュート機能あり
- ダークモード搭載
関連記事
2つのDateオブジェクトが同じ日か否かを判定する - monjudoh’s diary
date1 = new Date('Tue, 19 Feb 2008 02:26:57 GMT'); date2 = new Date('Tue, 13 Feb 2008 02:26:57 GM... date1 = new Date('Tue, 19 Feb 2008 02:26:57 GMT'); date2 = new Date('Tue, 13 Feb 2008 02:26:57 GMT');// date1と日付が違う date3 = new Date('Tue, 19 Feb 2008 02:36:57 GMT');// date1と時刻が違う new Date(date1.toDateString()).getTime() == new Date(date2.toDateString()).getTime(); //false new Date(date1.toDateString()).getTime() == new Date(date3.toDateString()).getTime(); //true 一応、IE、Firefox、Operaで試したけどtoDateS