date - format a DateTime in php with format "JJJJ-MM-TTTss:mmZZZ" -
i'm trying format date google specifies format it
the format specified google :
" jjjj-mm-tttss:mmzzz "
what tried far is:
var_dump(date_format($date,'y-m-d h:m:s'));
results in
"2013-aug-wed 18:08:37"
when try uses googles format
var_dump(date_format($date,'jjjj-mm-tttss:mmzzz'));
it results in
jjjj-augaug-cestcestcest3737:0808720072007200"
i have no idea should like, help?
thanks in advance
what this?
$date = date_create(); print date_format($date, 'y-m-d\th:it');
output:
2014-03-24t10:43cet
Comments
Post a Comment