Link to home
Start Free TrialLog in
Avatar of asiasoft
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 ?
Avatar of waty
waty
Flag of Belgium image

You have to include the dates between #.

Select * from db1 where mydate = #12/11/1998#
Avatar of asiasoft
asiasoft

ASKER

Sorry Waty, I have tried that way and still not working.

thanks

ASKER CERTIFIED SOLUTION
Avatar of mcix
mcix

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Well, actually I hope there would be simpler way than that way. Anyway, thanks for the answer