Skip to content

From string to datetime

Jude Landry

Asked May 1, 2006, 2:15 PM EDT1 answer
Share
LinkedInX
I have a text file that I am scanning through. The is a date in the format mmddyy(no slashes). How to I convert this into a datetime structure? datetime dtex = new datetime(mm,dd,yy)? Thanx in advance!

1 Answer

Know the answer? Post it. Somebody with the same question will find it here.

  • 0
    try this: string txMM = "01"; string txDD = "01"; string txYY = "06"; datetime textDate = datetime.parse(txMM + "/" + txDD + "/" + txYY); :)
    0