Date()->value() comparison without time

#1

Hi!

I would like to compare date()->value() without time.
I’ve tried…

$page->end_datetime('d.m.Y')->value() > $page->start_datetime('d.m.Y')->value()

and

$page->end_datetime()->value('d.m.Y') > $page->start_datetime()->value('d.m.Y')

and few more without a luck. I just can’t figure out what I’m doing wrong here.

Any help would be much appreciated.

#2
$page->date('d.m.Y', 'end_datetime')

etc.

#3

So obvious! Thanks Texnixe! Eventually what I needed was…

$page->date('Y-m-d', 'end_datetime')