From date retrieve the day

Eg: 16 Nov 2022, Wed
if 15 Nov 2022, Tue

HI @llllllkt99

Try with this expression

DateTime.ParseExact("16 Nov 2022, Wed","dd MMM yyyy, ddd",System.Globalization.CultureInfo.InvariantCulture).ToString("ddd")

Regards
Gokul

Output Screen @llllllkt99

image

You can also try with this

DateTime.ParseExact("16 Nov 2022, Wed","d MMM yyyy, ddd",System.Globalization.CultureInfo.InvariantCulture).ToString("ddd")

Regards
Gokul

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