c# - Returning the time of the first activity -


i have table, stores of activities of day. want able pull time of first activity of today. however, query isn't returning values. have checked data , looks stored correctly within table (text field / days , months in right place). ideas doing wrong?

select min(activity_start) exprstart  tblactivity  [activity_start] between date('now') , date('now', '+1 day')" 

thank you.

your activity_start format '%d/%m/%y %h:%m:%s' date('now') returns strftime('%y-%m-%d', 'now'). comparatives in wrong format! try below;

select min(activity_start) firstactivity tblactivity activity_start >= strftime('%d/%m/%y', date('now')) 

Comments

Popular posts from this blog

PHPMotion implementation - URL based videos (Hosted on separate location) -

javascript - Using Windows Media Player as video fallback for video tag -

c# - Unity IoC Lifetime per HttpRequest for UserStore -