Expression to add the leading zeros in date if not already exisit
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
09-07-21 09:50 PM
Hi ,
I have to get the date as 02 even if the date appear as 2 or it appears as 02 , so that when i extract the files it should take it as 02, please can someone get the expression for this.
------------------------------
Miya
------------------------------
I have to get the date as 02 even if the date appear as 2 or it appears as 02 , so that when i extract the files it should take it as 02, please can someone get the expression for this.
------------------------------
Miya
------------------------------
3 REPLIES 3
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
10-07-21 12:28 AM
hi Miya,
Please use Date --> FormatDate Function in calculation stage:

------------------------------
Manish Kumar
------------------------------
Please use Date --> FormatDate Function in calculation stage:
------------------------------
Manish Kumar
------------------------------
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
13-07-21 05:52 AM
Hi Miya,
If you are extracting data from a flat file then is the format of the cell as text?
I have seen it happening myself. When I extract data from Excel for a attribute time and if it is not in text format the value appears as a decimated one.
What I do is format the cell to text and then load it into collection.
------------------------------
------------------------------
Best Regards,
Ved Sengupta
RPA Developer
Bangalore | INDIA
------------------------------
------------------------------
------------------------------
Best Regards,
Ved Sengupta
RPA Developer
Deloitte India (Offices of the US)
Bangalore | INDIA
*If you find this post helpful mark it as best answer*
------------------------------
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
09-09-21 11:26 AM
Yes simply use format date function . It will automatically append a zero if its its 1 digit number .
FormatDate("9/30/2020","dd.MM.yyyy"), --> result (30.09.2020)
------------------------------
------------------------------
Vipul Tiwari
Senior Process Simplification and Optimization Designer(Solutions Architect)
Fidelity International
------------------------------
------------------------------
FormatDate("9/30/2020","dd.MM.yyyy"), --> result (30.09.2020)
------------------------------
------------------------------
Vipul Tiwari
Senior Process Simplification and Optimization Designer(Solutions Architect)
Fidelity International
------------------------------
------------------------------
------------------------------
Vipul Tiwari
Senior Process Simplification Developer
Amazon
------------------------------
