Covert integer to datetime

Hi,

I have integer ‘20200115’ as ‘yyyymmdd’ format without any special characters. i need to convert it into ‘mmddyyyy’ format. How to convert it?

1 Like

Hi @soorya_prasad

Try this
DateTime.ParseExact (input, “mmddyyyy”, CultureInfo.InvariantCulture)

cheers :smiley:

Happy learning :smiley:

2 Likes

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.