I have a six-digit date field (BPADAT) defined as:
* Data Type Number,
* Field Size Number,
* Precision 6,
* Scale 0
(in YYMMDD format).
I'm looking for the simplest way to convert the date in a query to a Date/Time field (BPADATDT).
Unfortunately, the simplest way that I can think possible is to do the following:
BPADATDT: CVDate(Mid(Str([BPADAT]),3,2) & "/" & Mid(Str([BPADAT]),5,2) & "/" & Mid(Str([BPADAT]),1,2))
Is there a simpler method?
* Data Type Number,
* Field Size Number,
* Precision 6,
* Scale 0
(in YYMMDD format).
I'm looking for the simplest way to convert the date in a query to a Date/Time field (BPADATDT).
Unfortunately, the simplest way that I can think possible is to do the following:
BPADATDT: CVDate(Mid(Str([BPADAT]),3,2) & "/" & Mid(Str([BPADAT]),5,2) & "/" & Mid(Str([BPADAT]),1,2))
Is there a simpler method?