From date knows which day is?

Hi,

Is it possible to know which day is, from a string like “11/07/2019” as thursday for example

1 Like

Hi buddy
yes of course
now.DayOfWeek.ToString //if checking for today
or
if any variable then
in_date = “11/07/2019”
then out_date is
out_date = Datetime.ParseExact(in_date,“dd/MM/yyyy”,System.Globalization.CultureInfo.InvariantCulture).DayOfWeek.ToString

Simple buddy
hope would help you @mz3bel
Cheers

1 Like

Try this:

System.DateTime.ParseExact(“11/07/2019”, “dd/MM/yyyy”, System.Globalization.CultureInfo.CurrentCulture).DayOfWeek.ToString

3 Likes

Thank you @Palaniyappan problem fixed!

1 Like

Thank you @Ellboy roblem fixed!

Great
Cheers @mz3bel

1 Like

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