Converting date format

hey i want to convert date format
02.DEC 2022 to this 02.12.2022 format
please help

Hi @Kuldeep_Pandey

Try with this expression

DateTime.ParseExact(StringInput.ToString,"dd.MMM yyyy",System.Globalization.CultureInfo.InvariantCulture).ToString("dd.MM.yyyy")

image

Regards
Gokul

grafik

Just for the information about string to datetime conversions we do have a few options

  • CDate
  • Convert.ToDateTime
  • DateTime.Parse / ParseExact

for getting a reformated string we use the toString Method along with the format pattern

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