# Present date format

**URL:** <https://forum.uipath.com/t/present-date-format/204550>\
**Category:** Academy Feedback\
**Created:** [March 20, 2020, 5:53am UTC](https://forum.uipath.com/t/present-date-format/204550 "2020-03-20T05:53:51Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Karthik\_Kulkarni](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/karthik_kulkarni/32/80881_2.png) [@Karthik\_Kulkarni](https://forum.uipath.com/u/Karthik_Kulkarni)\
**Post date:** [March 20, 2020, 5:53am UTC](https://forum.uipath.com/t/present-date-format/204550/1 "2020-03-20T05:53:51Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Pradeep\_Shiv](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/pradeep_shiv/32/496519_2.png) [@Pradeep\_Shiv](https://forum.uipath.com/u/Pradeep_Shiv)\
**Post date:** [March 20, 2020, 5:55am UTC](https://forum.uipath.com/t/present-date-format/204550/2 "2020-03-20T05:55:39Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Karthik\_Kulkarni](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/karthik_kulkarni/32/80881_2.png) [@Karthik\_Kulkarni](https://forum.uipath.com/u/Karthik_Kulkarni)\
**Post date:** [March 20, 2020, 5:58am UTC](https://forum.uipath.com/t/present-date-format/204550/3 "2020-03-20T05:58:58Z")

</div>

it is throwing an error as DatVar is not declared.

---

<div class="post-metadata">

**Author:** ![Pradeep\_Shiv](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/pradeep_shiv/32/496519_2.png) [@Pradeep\_Shiv](https://forum.uipath.com/u/Pradeep_Shiv)\
**Post date:** [March 20, 2020, 5:59am UTC](https://forum.uipath.com/t/present-date-format/204550/4 "2020-03-20T05:59:32Z")

</div>

> [@Karthik\_Kulkarni](#):
>
> 20-mar-2020

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

---

<div class="post-metadata">

**Author:** ![Karthik\_Kulkarni](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/karthik_kulkarni/32/80881_2.png) [@Karthik\_Kulkarni](https://forum.uipath.com/u/Karthik_Kulkarni)\
**Post date:** [March 20, 2020, 6:01am UTC](https://forum.uipath.com/t/present-date-format/204550/5 "2020-03-20T06:01:27Z")

</div>

Will it convert any present date to that.

---

<div class="post-metadata">

**Author:** ![Pradeep\_Shiv](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/pradeep_shiv/32/496519_2.png) [@Pradeep\_Shiv](https://forum.uipath.com/u/Pradeep_Shiv)\
**Post date:** [March 20, 2020, 6:03am UTC](https://forum.uipath.com/t/present-date-format/204550/6 "2020-03-20T06:03:30Z")

</div>

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
