Hi,
I have in my SQL table a VAR where I save the date when a user enters.It is a NVARCHAR
Something like "26/06/2009 01:25:05"
But now I want to select only the dates that are bigger than a date. But the date in the table is a NVARCHAR and the one I use to check with is a real type of date. My code is
Code:
date_today=date()-1
date_today=date_today &"05:00:00"
sql="SELECT * from comercials where real_date >='"&date_today&"'"
So "real_date" is a NVCHAR and can not be checked as a DATEformat.
i tried several thing but my mind is getting fuzzy
Thx already!