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, 2019 in RPA by Nidhi
6,506 views

1 answer to this question.

+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, 2019 by Anvi
• 14,150 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

How to change date-time format in uipath?

Hey there, if you have a string ...READ MORE

answered Oct 24, 2019 in RPA by Abha
• 28,140 points
13,760 views
0 votes
1 answer

Unable to start my robot process from command line in Uipath

Hey Apeksha,  you can’t use /executor and /target ...READ MORE

answered Nov 8, 2019 in RPA by Abha
• 28,140 points
4,256 views
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,110 points
3,073 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 14, 2019 in RPA by Abha
• 28,140 points
16,793 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 14, 2019 in RPA by Abha
• 28,140 points
3,064 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, 2019 in RPA by Anvi
• 14,150 points
8,214 views
+2 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, 2019 in RPA by Pratibha
• 3,690 points
17,198 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 19, 2019 in RPA by Anvi
• 14,150 points
17,829 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, 2019 in RPA by Anvi
• 14,150 points
1,774 views
0 votes
1 answer

Unable to use selectors in UiPath studio.

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

answered Mar 28, 2019 in RPA by Anvi
• 14,150 points
2,261 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP