MySQL Forums
Forum List  »  PHP

Re: select from database where date = 27
Posted by: Peter Brawley
Date: February 28, 2014 10:30PM

> time() Or UNIXTIME.

Those are very different formats. If it's a Time value, it has no day info. If it's UnixTime, you can use From_UnixTime() to convert it to a date or datetime, then use DayOfMonth() to find the month day.

Options: ReplyQuote




Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.