Hello all after writing DateTime.Now I am getting output as 3/3/2023 16:03:01. Can someone tell me how can I exclude time from it and only keep the date.
Thanking you.
Regards,
Hardik Durgam.
Hello all after writing DateTime.Now I am getting output as 3/3/2023 16:03:01. Can someone tell me how can I exclude time from it and only keep the date.
Thanking you.
Regards,
Hardik Durgam.
Hi @Hardik_Durgam
Try DateTime.Now.toString(“dd/MM/yyyy”)
Hi @Suraj_B_Shetty ,actually I have to extract ‘to-date’ from this data table,
This ‘to-date’ always has to be greater than today’s date. So can you tell me how to do it?
Regards,
Hardik Durgam.
From which application u r extracting the to-date.
It’s from SAP application.
Using Table Cell Scope and Get Text activity extract the date and convert it to the DateTime format. Then compare with today’s date.
DateTime.ParseExact(to-date, “dd.MM.yyyy”, System.Globalization.CultureInfo.InvariantCulture)>DateTime.Now
Hi @Hardik_Durgam,
Please try this and let me know if it works. DateTime.today>Convert.ToDateTime(to)
Regards.
@Hardik_Durgam
please try this after getting date.
put variable in this
→ DateTime.ParseExact(Effective, “MM/dd/yyyy 00:00:00”, System.Globalization.CultureInfo.InvariantCulture).ToString(“MM/dd/yyyy”)
Effect is my variable