Hi,
I had a condition where i want to get data which fall under today date. The date on web is displaying in August,24,2020 format. how i write the expression for validating today date against the given format date.
Hi,
I had a condition where i want to get data which fall under today date. The date on web is displaying in August,24,2020 format. how i write the expression for validating today date against the given format date.
HI,
Used store web date in str variable…
and used if,
Str variable=System.DateTime.Now.ToString(“MMMM,dd,yyyy”)
Not Working
parse the string into a datetime and do the compare on dateTime base:
DateTime.ParseExact(“August,24,2020”,“MMMM,dd,yyyy”, CultureInfo.InvariantCulture)
HI,
System.DateTime.Now.ToString(“MMMM,dd,yyyy”)=“August,29,2020”