GoneAccessCrazy
Programmer
Is there a way to select only the date of a datetime column,
I was using the left(date1,10) but when the system date format is other that MM/dd/yyyy y end up getting part of the time.
e.g.
Select left(date1,10) as dateBegin, right(date1,8) AS hourBegin ...
when date is MM/dd/yyyy
I get 02/31/2002 10:00:00
but when the date format is M/d/yy
I get 2/31/02 10 10:00:00
GAC
I was using the left(date1,10) but when the system date format is other that MM/dd/yyyy y end up getting part of the time.
e.g.
Select left(date1,10) as dateBegin, right(date1,8) AS hourBegin ...
when date is MM/dd/yyyy
I get 02/31/2002 10:00:00
but when the date format is M/d/yy
I get 2/31/02 10 10:00:00
GAC