Get today's date in PHP? -
i want today's date, correct way it?
echo strftime("%e %h %y", time());
please note, i'm using strftime becuase i'm using setlocale. knowledge dont think can use date.
thanks
<?php setlocale(lc_all,"hu_hu.utf8"); echo(strftime("%a %d %b %y")); echo(strftime("%a %d %b %y")); echo(strftime("%w %d %m %y")); ?>
top 1 echos:
thursday 18 july 2013
second 1 echos:
thu 18 jul 13
third 1 echos:
4 18 07 13
(4) being thursday, fourth day week.
Comments
Post a Comment