From my database I am trying to fetch all records after a particular date. For this I am using the query
SELECT *
FROM Events_tbl
WHERE lastupdated > '07-18-2011' and Venue=8
This particular piece of code is working in my localhost. But when I upload to server it is not returning anything. Could someone help please?
I am really stuck.
In my SQL Server database the datetime value is
2011-07-19 19:37:50.727
I am using pipeten server in UK. I am working on asp.net c#
Thanks
use the ISO dateformat (YYYYMMDD) it is safe across all languages