Page 1 of 1

getdate(month) but display in short month

Posted: Wed Jun 11, 2003 1:39 am
by valen53
getdate(month), the result if this month is June. but i wish to display in Jun. any method can do that ?

Posted: Wed Jun 11, 2003 1:45 am
by discobean
$short_month = substr ($long_month, 0, 3)

Posted: Wed Jun 11, 2003 3:40 am
by twigletmac
You could also do:

Code: Select all

date('M');
http://php.net/manual/function.date.php

Mac