P
paulmitchell507
Can anyone explain why when use the following function in an Access
2000 query the results are dd/mm/yy?
CDate(Str(Month([mydate])) & "-1-" &
Str(Year([mydate]))) "
An example would be, [mydate] is stored in the table as dd/mm/yyyy,
21/02/2008. I would like the function to set the dd part of the date
to 01 and leave the mm/yyyy as it is. The output I get is 21/01/2008.
Regards,
Paul
2000 query the results are dd/mm/yy?
CDate(Str(Month([mydate])) & "-1-" &
Str(Year([mydate]))) "
An example would be, [mydate] is stored in the table as dd/mm/yyyy,
21/02/2008. I would like the function to set the dd part of the date
to 01 and leave the mm/yyyy as it is. The output I get is 21/01/2008.
Regards,
Paul