System.DateTime

system.DateTime.Today.ToShortDateString

how do I get the above to format dd/mm/yyyy please

Try DateTime.Today.ToString(“dd/MM/yyyy”)

3 Likes

One more way is Now.ToString(“dd/mm/yyyy”)

4 Likes

Cool

how can I make it a date in 30 days time? from today I have tried now.ToString(“dd/mm/yyyy”) + 30

You can use add days

Now.AddDays(30). tostring (“dd/MM/yyyy”)

Or

Today.AddDays(30). tostring (“dd/MM/yyyy”)

2 Likes

Pls friends, how to use it in the user interface?
How command i use ?

store| DateTime.Today.ToString(“dd/MM/yyyy”) | mydate

executeScriptSandbox|return DateTime.Today.ToString(“dd/MM/yyyy”) | mydate