L
Linda
I have a table with 2 records, one field is date/time
field and is formatted like mm/dd/yyyy.
Cuurently I have the following dates 01/22/2004 and
09/22/2001.
When I assign the date values to dtstart
(this is variant) the dates get reversed, so 01/22/2004
becomes 22/01/2004 and 09/22/2004 becomes 22/09/2004
dtstart = CDate(Format(rstsplit!StartDate, "mm/dd/yyyy"))
However when use
dtstart = Format(rstsplit!StartDate, "mm/dd/yyyy")
then I noticed that dtstart becomes a string value.
Can anyone explain why this is happening? TIA
field and is formatted like mm/dd/yyyy.
Cuurently I have the following dates 01/22/2004 and
09/22/2001.
When I assign the date values to dtstart
(this is variant) the dates get reversed, so 01/22/2004
becomes 22/01/2004 and 09/22/2004 becomes 22/09/2004
dtstart = CDate(Format(rstsplit!StartDate, "mm/dd/yyyy"))
However when use
dtstart = Format(rstsplit!StartDate, "mm/dd/yyyy")
then I noticed that dtstart becomes a string value.
Can anyone explain why this is happening? TIA