asiasoft
asked on
Set sql statement for Date
Is there any way to 'select' all record with particular date value, without specifying the time value ?
I have tried with the following command :
Select * from db1 where mydate like "12/11/1998"
but it always fails (no result return). I guess it's because I didn't use the complet date format, including the time portion.
For examples : I want to list all records with date value "1 january 98", how the sql statement should be ?
I have tried with the following command :
Select * from db1 where mydate like "12/11/1998"
but it always fails (no result return). I guess it's because I didn't use the complet date format, including the time portion.
For examples : I want to list all records with date value "1 january 98", how the sql statement should be ?
ASKER
Sorry Waty, I have tried that way and still not working.
thanks
thanks
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Well, actually I hope there would be simpler way than that way. Anyway, thanks for the answer
Select * from db1 where mydate = #12/11/1998#