Search the Community
Showing results for tags 'timestamp'.
Found 1 result
Hello Is there a way to got timestamp from FieldDatetime? Like $page->event_start->timestamp? Lets say that I have datetime field that have following format 'd/m/Y' and I'm trying to get week number from given field. $datetime->date('W'); (returns : 01) but $datetime->date('W',$page->start_date) (returns: 03) but should be same. There is workaround, but that just seems too much 🤨 $datetime->date('W', $datetime->stringToTimestamp($page->event_start, 'd/m/Y'));