PHPファイルで今日の日付が= 04/01/2013であるかどうかを確認しようとしています。次の JS スクリプトを作成しました。しかし、私はいくつかのエラーが発生しています。理由がわからない。助けてください
//This function will return if today is the date that we are looking for
function isToday($time) // midnight second
{
alert('1');
return (strtotime($time) === strtotime('today'));
}
以下を使用したテスト:
if (isToday('2013-04-01 00:00:00.0') )
{
alert('Yes true');
}
else
{
alert("No false');
}
今日の日付 = 04/01/2013 を比較する方法を教えてください。ありがとう。