Re: how to use date in SQL Select
From: Heikki Lehto (heikki.lehto_at_nokia-eu.com)
Date: 04/19/04
- Next message: sharon: "Re: Modify advanced permissions using wsh on W2K Server"
- Previous message: Kent P. Iler: "Re: MsgBox doesn't stop script!!!"
- In reply to: Heikki Lehto: "how to use date in SQL Select"
- Messages sorted by: [ date ] [ thread ]
Date: Mon, 19 Apr 2004 20:17:26 +0300
> Select * from myDsn Where junk = 'abc' AND DateAdd("s", sValue,
#1/1/1970#)
> = '4/19/2004'
solved it by creating a timecalculation for seconds before midnight and
passed that value to the sqlCommand string , ie "Select * from myDsn Where
junk = 'abc' AND time_stamp >= " & myCalculatedSeconds
works fine!:)
- Next message: sharon: "Re: Modify advanced permissions using wsh on W2K Server"
- Previous message: Kent P. Iler: "Re: MsgBox doesn't stop script!!!"
- In reply to: Heikki Lehto: "how to use date in SQL Select"
- Messages sorted by: [ date ] [ thread ]