theboyholty
MIS
I've got two fields - DateCreated (e.g. 2008-12-19 00:00:00.000) and TimeCreated (e.g. 1900-01-01 16:07:35.000).
Where the 1900-01-01 is a set dummy date - its just the time that's accurate.
I want to show items recieved in the last 10 minutes but if I use datediff(minute,timecreated,getdate()), I get as a result the number of minutes since 1900 i.e. about 57 million.
How can I strip the time out so I can compare it with the time now and show the correct records?
Where the 1900-01-01 is a set dummy date - its just the time that's accurate.
I want to show items recieved in the last 10 minutes but if I use datediff(minute,timecreated,getdate()), I get as a result the number of minutes since 1900 i.e. about 57 million.
How can I strip the time out so I can compare it with the time now and show the correct records?