Nette return DateTime instead of Date

Notice: This thread is very old.
Ondřej Kubíček
Member | 494
+
0
-

I have a column in table (mysql) type Date and Nette Database return value as Nette\DateTime. I think it is bad. I push row into $form->setDefaults, in form is input type Date and it need value yyyy-mm-dd, not yyyy-mm-dd hh-mm-ss, so why Nette return DateTime instead of Date and not by the type of column? If I want DateTime I will have type column DateTime or whatever else.

What are you mean?

David Matějka
Moderator | 6445
+
0
-

there isn't Date class in php, only DateTime

Last edited by matej21 (2014-02-06 11:23)