PHP- working with date and time -


I need to recover the date of this format 2014-17-02 00:00:00 , where hour minutes and seconds are just zero, which means that today I want to start the day after midnight, or yesterday 2014-16-02 23:59:59 pm this Depending on how you see it,

want to retrieve such type of time, so I have to compare my 'created' field within the database Can I do that, allowing me to get records recorded today? ..

> Any suggestions? I have tried to:

  $ this-> Today = date ('Y-M-DH: I: S'); $ This- & gt; Today = date ('Y-M-DH: I: S', stratotem ('now'));   

But they do the same thing (give me the accuracy of the HM MM SS day time) which I do not want.

I want to execute this query as the user, select "users.role.us User_role, user (user.role) user as user_account as user. ; = '$ This- & gt; Today' // Midnight Group by a URL created before a record. ""

  $ this-> date = date ('Ym-D') 00: 00: 00 ';   



Comments

Popular posts from this blog

python - how we can use ajax() in views.py in django? -

matlab - Using loops to get multiple values into a cell -

python - Sequence Pattern recognition with Pybrain -