How can i convert dd/mm/yyyy to get the day name?

How can i convert, for example,
09/01/2023 to get the day name, i.e. Monday?

Hi @Rowley101 ,

Could you Check with the below Expression :

DateTime.ParseExact("09/01/2023","dd/MM/yyyy",System.Globalization.CultureInfo.InvariantCulture).DayOfWeek.ToString
1 Like

Hi @Rowley101 ,

Can you try this

DateTime.ParseExact(“09/01/2023”,“dd/MM/yyyy”,system.Globalization.CultureInfo.InvariantCulture).ToString(“dddd”)

Thanks!

1 Like

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