G
Gilbert Noetzel
Hey guys & gals (if any) this is my first posting to the group.
Got a nagging issue that I am trying to resolve. Google and Newsgroup
have not posted anything that can resolve what I need to do.
I have an AS/400 system here that has a date format of CYYMMDD. The C
is for Century Code and below is the example:
1061023 = 2006/10/23 = October 23, 2006
I need to convert or 'translate' the data into the following date
format: mmddyyyy (mm/dd/yyyy).
Can anyone help? I have something resolve close but it is not working
the way I want with the end result of mmddyyyy.
Here is what I got so far:
IIf(Len([CMDLPY])=7, Format(Mid([CMDLPY],4,2) & "-" & Mid([CMDLPY],6,2)
& "-" & Mid([CMDLPY],2,2),"Medium Date"), Format(Mid([CMDLPY],3,2) & "-"
& Mid([CMDLPY],5,2) & "-" & Left([CMDLPY],2),"Medium Date"))
End result is: 10/23/2006
The goal is to use either Access or Excel to Export the data into CVS
text file for a new system that requires the date format to be mmddyyyy
Thank you all for your help.
Gil
Got a nagging issue that I am trying to resolve. Google and Newsgroup
have not posted anything that can resolve what I need to do.
I have an AS/400 system here that has a date format of CYYMMDD. The C
is for Century Code and below is the example:
1061023 = 2006/10/23 = October 23, 2006
I need to convert or 'translate' the data into the following date
format: mmddyyyy (mm/dd/yyyy).
Can anyone help? I have something resolve close but it is not working
the way I want with the end result of mmddyyyy.
Here is what I got so far:
IIf(Len([CMDLPY])=7, Format(Mid([CMDLPY],4,2) & "-" & Mid([CMDLPY],6,2)
& "-" & Mid([CMDLPY],2,2),"Medium Date"), Format(Mid([CMDLPY],3,2) & "-"
& Mid([CMDLPY],5,2) & "-" & Left([CMDLPY],2),"Medium Date"))
End result is: 10/23/2006
The goal is to use either Access or Excel to Export the data into CVS
text file for a new system that requires the date format to be mmddyyyy
Thank you all for your help.
Gil