Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
24-hour time period?
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00210812
Message ID:
00210815
Views:
23
>I know this is not a toughy, but it has been a long day and my brain is refried. So here goes.
>
>Is there a one-liner someone has that can determine when to show records created over the last 24-hour time period only?
>
>I am saving the DATETIME() in each record and want to list only the saved records that are less than 24 hours old.
>
>What do you think? Thanks for helping me with this TIMEly question.
Select * From Mytable ;
Where mytable.datetime>datetime()-24*3600
Edward Pikman
Independent Consultant
Previous
Reply
Map
View

Click here to load this message in the networking platform