Hi,
which way do i get a date format of just Y-m-d?
I am using:
$oxdate=date( "Y-m-d", oxUtilsDate::getInstance()->getTime() )
but get just results like [U]2012-10-30 00:00:00[/U]
I would like to trim the date just to [U]2012-10-30[/U]
Can anyone suggest any solution.
Thank you
Code is correct, if you echo $oxdate i think you will not get 2012-10-30 00:00:00. Maybe you read from database.
Hi,
thank you.
I am trying to write the date to DB and when checking in phpMyAdmin, I ses, the entry is made with this empty time parameter
it is the default mysql timestamp format if i’m not mistaken. u don’ need to want to change that, just format the date before u output it, after u load it from the db