Jump to content

Problems using date...


virruss2

Recommended Posts

Hi,

 

I have a little problem with the creation date of some webpages when trying to sort them by date.

I've stored my dates as strings, in this format: 1/08/08 (day/month/year - I've used j/m/y if I remember correctly).

Now I need to select only webpages from a particular range of time, but I cannot compare strings... For example, I need:

 

SELECT * FROM 'mytable' WHERE date > '$my_date'

 

but my date field is a string.

 

Any idea? Thank you in advance.

Link to comment
https://forums.phpfreaks.com/topic/118149-problems-using-date/
Share on other sites

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.