EC CUBE DBに日付を登録する。
<?php $from = SC_Utils_Ex::sfGetTimestamp(date("Y"), 1, 1); // 2015-01-01 00:00:00 $to = SC_Utils_Ex::sfGetTimestamp(date("Y"), 12, 31, true); // 2015-12-31 23:59:59
<?php $from = SC_Utils_Ex::sfGetTimestampistime(date("Y"), 1, 1, 0, 0); // 2015-01-01 00:00:00 $to = SC_Utils_Ex::sfGetTimestampistime(date("Y"), 1, 5, 10, 29, true); // 2015-12-31 10:29:59