I’m using this code to display the month in a timeline in an abbreviated way. This needs to be translated in two languages.
<?php $somedate = $event->event_datum(); echo date('M Y', strtotime($somedate)) ?>
In another topic, i read i would need strftime for this. When i use this code
<?php $somedate = $event->event_datum(); echo strftime('M Y', $somedate) ?>
I get the error: strftime() expects parameter 2 to be integer, object given
Could you tell me why i get the error and how i can fix this? Thank you!