Present date format

Hi,

Can someone help me in getting present date format as below

it should be as
20-03-2020

it should’t be as
20-mar-2020

DateVar.ToString(dd-MM-yyyy)
@Karthik_Kulkarni

1 Like

it is throwing an error as DatVar is not declared.

Cdate(“20-mar-2020”).tostring(“dd-MM-yyyy”)

Will it convert any present date to that.

1 Like

yes!
how do you get that time??

DateTime.Now.ToString(“dd-MM-yyyy”)
you can try this also!
@Karthik_Kulkarni this will convert when ever you run the bot it will convert to that format!
Cheers

2 Likes