Hi,
Is it possible to know which day is, from a string like “11/07/2019” as thursday for example
Hi,
Is it possible to know which day is, from a string like “11/07/2019” as thursday for example
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
Try this:
System.DateTime.ParseExact(“11/07/2019”, “dd/MM/yyyy”, System.Globalization.CultureInfo.CurrentCulture).DayOfWeek.ToString
Thank you @Palaniyappan problem fixed!
Thank you @Ellboy roblem fixed!
Great
Cheers @mz3bel
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.