Hi @RajKumar_DC
Its working fine Thankyou
can you please help me how can i remove time in that output.
Tx
AB
Hi @RajKumar_DC
Its working fine Thankyou
can you please help me how can i remove time in that output.
Tx
AB
Hi @absithyd ,
just add “ToShortDateString” in end
DateTime.ParseExact(("Monday, February 20th").ToString.Replace("th",Nothing),"dddd, MMMM dd",system.Globalization.CultureInfo.InvariantCulture).ToShortDateString
Thanks,
Hi @RajKumar_DC
If i get input string 22nd or 23rd how can i replace with below expression.
could you please explain.
DateTime.ParseExact((“Monday, February 20th”).ToString.Replace(“th”,Nothing),“dddd, MMMM dd”,system.Globalization.CultureInfo.InvariantCulture)
Hi @absithyd ,
Check this
DateTime.ParseExact(("Monday, February 20th").ToString.Replace("th",Nothing).Replace(“nd”,Nothing).Replace(“rd”,Nothing),"dddd, MMMM dd",system.Globalization.CultureInfo.InvariantCulture).ToShortDateString
Thanks,
Hi @Niket_Ghai ,
I realized that your solution only works with String dates. I have the same issue but I need to get it to be dynamic (I usually use System.DateTime.Now.ToString(xx) value). Is there a way to do it?
Thanks!