Jump to content

time of day sorting problem please help!!!!!!


shooff2332

Recommended Posts

I have a website for a court where people can go online and check when their court appearance is for the date selected.  Everything works smooth in that aspect.  The problem that I have is that if the person has a appearance time of 1200pm or 1230pm it displays at the bottom of the page as the last time, where it should be displayed in order of time i.e. 10am,11am,12pm,1pm where currently it displays 3pm,4pm,5pm,12pm,1230pm.  I have the data sorted in descending order from the morning to the afternoon when they select the date they are trying to display.  Just wondering if there is a time function I am supposed to use or something I am supposed to change in the .ini file.  I can post a link to the website if that helps.  Thanks for any and all help.

Link to comment
Share on other sites

since int and char are seperated, i wud guess it wud be yer merging or sorting algorithm

 

i wud either make it 24 hr designation (am/pm extracted from the time instead)

 

this cud save a lot of time than switching everything over to timestamps

 

but timestamps wud provide better flexibility when doing sql searches

 

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.