Hello,
I think I've almost solved this problem but wondered if anyone can fill in the last bit for me. The problem with the following code is that I want "01/06/2003" to be in ("dd/mm/YYYY") format but PHP keeps interpreting it as "mm/dd/YYYY" and therefore ruining the condition in the if statement.
Is there a way to make PHP interpret "01/06/2003" as dd/mm/YYYY instead of mm/dd/YYYY?
<?php
$downloadDeadline = strtotime("01/06/2003");
echo $downloadDeadline."--";
// today is 17/04/2003 (dd/mm/YYYY)
$today = time();
echo $today."--";
if ($downloadDeadline > $today){
echo "can download";
}else{
echo "can't download";
?>
Many thanks for any pointers.