String to Date

I need to convert ‘20210706’ - ‘06 jul 2021’
how to do this??

Hi @agathiyanv

Try this

image

Date.ParseExact("20210706", "yyyyMMdd", System.Globalization.CultureInfo.InvariantCulture).ToString("dd MMM yyyy")
1 Like

HI @agathiyanv

Check out more info about the date format

Regards
Gokul

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