Date coversion

how would i cover dd/MM/yyy to DD-Jan-YYY for example where Jan is the current month. could be Feb… etc

1 Like

Probably easiest to use a date object then apply the new format.

DateTime.Parse(originaldate).ToString(“dd-MMM-yy”)

Hi
If the input is stored in a string variable named str_input
Hope this expression would help you resolve this
DateTime.ParseExact(str_input.ToString,”dd/MM/yyyy”),System.Globalization.CultureInfo.InvariantCulture).ToString(“dd-MMM-yyyy”)

Cheers @Rowley101

1 Like

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