|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| ||||||||||||||||||||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
Date and DateTime
hi,
my field is format datetime in the database, but when I am passing it through in a function, i have to pass it as "date" when i then try to run a sql query it does not find anything, becuase the database value is: 2010-02-01 00:00:00.000 but I am looking for 3/1/2010, do i need to somehow convert it before doing the query. the passed in variable also has "#" symbols on both sides of it like so: #3/1/2010#, is that okay? |
|
#2
|
||||
|
||||
|
ok, i got it,
here is how i got it working: myeDate= cast('" & argMyDate & "' as smalldatetime)" |
![]() |
| Viewing: ASP Free Forums > Programming > .NET Development > Date and DateTime |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|