VM's Date in string

How to get the VM’s current day date in dd.MM.yyyy format in string
How to get the VM’s previous day date in dd.MM.yyyy format in string

Virtual machine (VM) located in Germany location

You can use Now.ToString(“dd.MM.yyyy”) For today’s date in the desired format, as this will use the machine’s timezone.

For previous day, use .AddDays(-1) such as: Now.AddDays(-1).ToString(“dd.MM.yyyy”)

Hope it helps!

BR,
Ignasi

@Sathish_Kumar_S,

This should work from VM and outside of VM as well.

Output:
image

Sample Code:
Workflow1.xaml (6.8 KB)

Thanks,
Ashok :slight_smile: