Jump to content

date


richiec

Recommended Posts

Hello all, im having a little issue here ill try and explain it best i can.

 

I have a date and time stored in my database which is then read from a site if the date and time in the DB is < than the current date and time (meaning the current date has now passed the date in the DB) the site changes a little. I have it working, it works fine, apart from one thing..

 

This is the date and time in the DB:

 

May 10, 2009, 15:52

 

Now today is the 8th and the site is thinking that the current date and time is > than the date and time in the DB because the date begins with 10 (first number being 1)

 

The date field in the DB is using varchar i know to go by number order it would be int and it would then order them correctly however you can only have numbers in int.

 

Does anyone know any way i can solve this issue?

 

Thanks

 

Rich

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.