![]() |
date changes
I have this problem:
pulling a date from sql in this format 2004-04-12 0000:00:00 I trim it down to just the date and display as needed. what I want to do is pull my latest information for past 5 days meaning as I run my query its going to get the date in the row change it to 2004-04-12 format without the time and see if its todays date or a date up to 5 days ago if it is then I want that information, if not then I dont. this is going to be for a quick way to see my recent serice calls and what not that I use here at work. if anyone has any ideas let me know, also if you need some code to see what exactly I have going on I will post on request. Thanks |
Quote:
|
Well why anyone would store date/time in that format within a database is beyond me. The best thing to do would be to add a new column to that table. And make a script to change all the dates into a timestamp. Then it's much more easy to work with :)
|
yeah I got it fixed with the sbstr command and cut the string up the way I wanted it.
|
All times are GMT. The time now is 06:24 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|