Hello guys. Im trying to get the date that was 3 days ago, for example, today is 16th, I need 13th, but dont know what to add to the command that I have now DateTime.Now.ToString("yyyy.MM.dd")
Does anyone have any ideas? Thanks!
Gokul001
(Gokul Balaji)
December 16, 2022, 8:01am
2
Hi @Povilas_Jonikas
Try this expression
DateTime.Now.AddDays(-3).ToString("yyyy.MM.dd")
Regards
Gokul
1 Like
Hello @Povilas_Jonikas ., Try this
DateTime.Now.Adddays(-3).ToString(“yyyy.MM.dd”)
1 Like
Gokul001
(Gokul Balaji)
December 16, 2022, 8:03am
4
For more detail refer this tutorial
Hello Everyone,
I would like to present this post who are looking for the expressions related to the Date Format, String manipulation and LINQ
Basic of Date formatting
In this below topic, you will learn about Date Formats
Convert datetime to week of year
System.Globalization.CultureInfo.CurrentCulture.Calendar.GetWeekOfYear(System.DateTime.Now, System.Globalization.CultureInfo.CurrentCulture.DateTimeFormat.CalendarWeekRule,System.Globalization.CultureInfo.CurrentCulture.DateTimeFormat.Fi…
Hi All,
My recent post on datatable [All About Datatable- UiPath] (All about Datatable - UiPath ) was received well in forum with great feedbacks and many suggested to provide some tutorial on topics which are discussed often in our forum
In regards to that I would like to share the commonly used expression for DATETIME conversion
Let’s get started one by one
1. Get Current Date in string format
Datetime.Now.ToString()
(Output - string type - “dd/MM/yyyy hh:mm:ss”)
**To get only current da…
Regards
Gokul
1 Like
system
(system)
Closed
December 19, 2022, 8:21am
6
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.