Jump to content

[SOLVED] date format + is > than


otuatail

Recommended Posts

Hi I want to do a query like Where date is > than '12-10-2009 12:22:21'

This is an english date format. US use MM-DD-YYYY. The database is

YYYY-MM-DD HH:MM:SS

 

Is there a function that takes care of the diffent date formats for this, or would I need to role my own?

 

Desmond.

 

Link to comment
https://forums.phpfreaks.com/topic/180477-solved-date-format-is-than/
Share on other sites

Ok thanks i thought so.  .NET has a masive function for this. I will now sit down in a dark room and re-invent a wheel. Will let you know the results.

 

Desmond.

 

 

So does MySQL:

http://dev.mysql.com/doc/refman/5.1/en/date-and-time-functions.html#function_date-format

http://dev.mysql.com/doc/refman/5.1/en/date-and-time-functions.html#function_sec-to-time

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.