Click here to Skip to main content
15,896,348 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Im converting an array, in the date column, the format is dd/MM/yy, i need to convert that date format in yyyyddMM. I tried parse, parseexact but returns an
errors "String cannot be converted into date" or "String was not recognized as a valid DateTime." or "The DateTime represented by the string is not supported in calendar System.Globalization.GregorianCalendar."


Please help me.

Many Thanks!
Posted

1 solution

DateValue(CDate(sDate)).ToString("yyyyddMM")
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900