This is a multi-part message in MIME format.
------=_NextPart_000_000A_01C8E729.C2725F90
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Hello,
I am trying to convert a string ("080714") to a date 08/07/14 using the =
format yyMMdd
mydate is declared as a date=20
grpod_date is the string 080714
I am getting the error "A first chance exception of type =
'System.FormatException' occurred in mscorlib.dll"
on the following line.
mydate =3D DateTime.ParseExact(gProd_date, "yyMMdd", New =
Globalization.CultureInfo("en-US"))
any guidance would be appreciated
Thank you
chuck
------=_NextPart_000_000A_01C8E729.C2725F90
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.6000.16674" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY>
<DIV><FONT face=3DArial size=3D2>Hello,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>I am trying to convert a string =
("080714") to a=20
date 08/07/14 using the format yyMMdd</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>mydate is declared as a date =
</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>grpod_date is the string =
080714</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>I am getting the error "A first chance =
exception of=20
type 'System.FormatException' occurred in mscorlib.dll"</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>on the following line.</FONT></DIV>
<DIV>
<P><FONT face=3DArial size=3D2>mydate =3D =
DateTime.ParseExact(gProd_date, "yyMMdd",=20
New Globalization.CultureInfo("en-US"))</FONT></P><FONT face=3DArial =
size=3D2>
<P><SPAN style=3D"FONT-SIZE: 10pt; FONT-FAMILY: =
'Arial','sans-serif'">any guidance=20
would be appreciated</SPAN></P>
<P><SPAN style=3D"FONT-SIZE: 10pt; FONT-FAMILY: =
'Arial','sans-serif'">Thank=20
you</SPAN></P>
<P><SPAN=20
style=3D"FONT-SIZE: 10pt; FONT-FAMILY: =
'Arial','sans-serif'">chuck</SPAN></P>
<P><SPAN=20
style=3D"FONT-SIZE: 10pt; FONT-FAMILY: =
'Arial','sans-serif'"></SPAN> </P></FONT></DIV></BODY></HTML>
------=_NextPart_000_000A_01C8E729.C2725F90--