Hi Madhuraj,
I have a dt(variable) with format “dd.MM.yyyy”, and I want to use your method to convert it into a new format to"yyyyMMdd".
I tried with assign NewDT=Convert.ToDateTime(dt.ToString(“yyyyMMdd”)), system always come up with a complier error reminder.
Please help to take a look and help me on this.
What if I begin with a variable dt instead of today?
I tried both dt.ToString(“yyyyMMdd”, System.Globalization.CultureInfo.InvariantCulture) and DateTime.dt.ToString(“yyyyMMdd”, System.Globalization.CultureInfo.InvariantCulture), neither of them works.
Hi , I’m new to Uipath trying to fetch date from mail using item.Header(“Date”) ,the output comes in the format of Thu 02/27/2020 8:00am and I want to convert the mail date format to System date format i.e 02/27/2020
You can use the following code to convert the “13 Oct’23” to “dd/MM/yyyy” format. A small modification you have to do in order to use the code, remove “th”.
Date Convertion : DateTime.ParseExact(inputDate, “dd MMM’yy”, System.Globalization.CultureInfo.InvariantCulture).ToString(“dd/MM/yyyy”)
Thanks, one more query regarding date. I am extracting below string from web and i just want a date from that and not time -
WebString - 10/13/20233:31 P.M.
I have tried below regex but not working.
System.Text.RegularExpressions.Regex.Match(SessionTitleVal.ToString,“\d+\W\d+\W\d+”).ToString
output - 10/13/20233 (it is not just extracting date)