date problem after upgrade
Permalink 1 user found helpful
I've upgraded my site from 5.3.2 to 5.3.3 but now I've got a date problem.
I'm trying to present the Collection date of a Concrete page like this 2009-10-05, it worked when I was running 5.3.2, but after the upgrade it show the full date, included time.
This is my code
It should give me 2009-10-05, but it shows me this: 2009-10-05 11:34:00
Can anybody tell how i can fix this? Thanks!
I'm trying to present the Collection date of a Concrete page like this 2009-10-05, it worked when I was running 5.3.2, but after the upgrade it show the full date, included time.
This is my code
$cobj->getCollectionDatePublic("Y-m-d")
It should give me 2009-10-05, but it shows me this: 2009-10-05 11:34:00
Can anybody tell how i can fix this? Thanks!
Here's the function that you're calling:
So, to get it formatted correctly you'd do: