Unable to add date-time variable in UiPath process.

+1 vote
I am unable to add a date-time variable in a Sequence in UiPath studio. Can anyone suggest how can I do that?
Mar 25 in RPA by Nidhi
201 views

1 answer to this question.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
+1 vote

Hey @Nidhi, in order to add a DateTime variable in a workflow in UiPath Studio, you can follow these steps:

  1. Create a new Sequence and create two variables, timeToday and timeLast. To set the variable type click on drop-down and click Browse for Types. Now in Search bar type DateTime and select DataTime variable under System.

     
  2. Create a TimeSpan variable, called timeSpan, and in the Default field type 1.02:10:04.
  3. Now add an Assign activity in the Sequence. In the To field add timeToday and in Value field, type Now. 
  4. Add another Assign activity under the previous one. In the To field, add the timeLast variable and in the Value field, type timeToday.Subtract(timeSpan).
  5. Finally, add a Message Box and type timeToday in text field to see the current time.
answered Mar 25 by Anvi
• 5,960 points

Why we use 1.02:10:04 this ? What's that mean actually ?

Hi Nanda, we used 1.02:10:04 as a value of timeSpan, which means the timespan you wish to keep between the current time and last time. It basically means, you can set whatever value you want as timespan in day.hh:mm:ss format so the timeLast variable will display the currentTime-timeSpan. This value is set as a default to show in which specific format you want to keep your timeSpan. For eg. if you set 0.00:00:00 as default value of timeSpan, you will get current time only as an output of timeLast.

Related Questions In RPA

0 votes
1 answer

Add filter to excel table in UiPath

If you use *my value as the ...READ MORE

answered May 16, 2018 in RPA by wrecker
• 3,090 points
932 views
0 votes
1 answer

Can I create dictionary in UiPath studio and add items to it?

Hey @Rumani, you can definitely create dictionary ...READ MORE

answered Mar 13 in RPA by Abha
• 6,480 points
265 views
0 votes
1 answer

Is it possible to add comments or description inside an activity in UiPath?

Hi @Utkarsh, to add Comments inside your ...READ MORE

answered Mar 25 in RPA by Pratibha
• 2,520 points
65 views
0 votes
1 answer

How to add or delete a Machine in UiPath Orchestrator?

Hey @Raj, to add a standard machine, ...READ MORE

answered Apr 5 in RPA by Anvi
• 5,960 points
52 views
0 votes
1 answer

What is Get Jobs activity used for in UiPath Studio?

Hey @Rakesh, Get Jobs Activity can be ...READ MORE

answered Mar 13 in RPA by Abha
• 6,480 points
67 views
0 votes
1 answer

How to format text in notepad using UiPath?

Hey @Rashmi, if you want to automate ...READ MORE

answered Mar 18 in RPA by Anvi
• 5,960 points
251 views
0 votes
1 answer

How can I display current date in "dd-MMM-yy" format in UiPath Studio?

Hi Shilpa, if you want to display ...READ MORE

answered Mar 18 in RPA by Pratibha
• 2,520 points
364 views
0 votes
1 answer

How to check if a string exists in datatable using UiPath?

Hi @Ravi, to check whether a string ...READ MORE

answered Mar 18 in RPA by Anvi
• 5,960 points
219 views
0 votes
1 answer

Unable to add custom library in UiPath Studio.

Hi @Neetu, if you have a custom ...READ MORE

answered Mar 25 in RPA by Anvi
• 5,960 points
32 views
0 votes
1 answer

Unable to use selectors in UiPath studio.

Hey @Megha, UiPath Studio uses Selectors to automate ...READ MORE

answered Mar 27 in RPA by Anvi
• 5,960 points
25 views

© 2018 Brain4ce Education Solutions Pvt. Ltd. All rights Reserved.
"PMP®","PMI®", "PMI-ACP®" and "PMBOK®" are registered marks of the Project Management Institute, Inc. MongoDB®, Mongo and the leaf logo are the registered trademarks of MongoDB, Inc.