0% found this document useful (0 votes)
70 views5 pages

Date and Time Manipulation Uipath RPA Developer 1751731189

Uploaded by

msatish1107
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
70 views5 pages

Date and Time Manipulation Uipath RPA Developer 1751731189

Uploaded by

msatish1107
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Linkedin: [Link]

com/in/rajkumar-durai/
No Name Function Example Output
1 Current timestamp [Link] 2025-06-13T[Link].5432109+05:30
2 Today's date [Link] 2025-06-13T[Link]
3 Add 7 days [Link](7) 2025-06-20T[Link].5432109+05:30
4 Subtract 3 days [Link](-3) 2025-06-10T[Link].5432109+05:30
5 Add 2 months [Link](2) 2025-08-13T[Link].5432109+05:30
6 Add 1 year [Link](1) 2026-06-13T[Link].5432109+05:30
7 Add 5.5 hours [Link](5.5) 2025-06-13T[Link].5432109+05:30
8 Add 30 minutes [Link](30) 2025-06-13T[Link].5432109+05:30
9 Add 45 seconds [Link](45) 2025-06-13T[Link].5432109+05:30
10 First day of month New DateTime([Link], [Link], 1) 2025-06-01T[Link]
New DateTime([Link], [Link],
11 Last day of month 2025-06-30T[Link]
[Link]([Link], [Link]))
12 Format as yyyy-MM-dd [Link]("yyyy-MM-dd") "2025-06-13"
Format as dd-MMM-
13 [Link]("dd-MMM-yyyy") "13-Jun-2025"
yyyy
14 Format as MM/dd/yyyy [Link]("MM/dd/yyyy") "06/13/2025"
15 Format as HH:mm:ss [Link]("HH:mm:ss") "[Link]"
16 Format as full datetime [Link]("F") "Friday, June 13, 2025 [Link] PM"
17 Parse date string [Link]("2025-12-25") 2025-12-25T[Link]
18 Parse exact format [Link]("25/12/2025", "dd/MM/yyyy", Nothing) 2025-12-25T[Link]
19 Day of week [Link] [Link]
20 Day of week number CInt([Link]) 5
[Link](Date
21 Week of year 24
[Link], [Link], [Link])
22 Is leap year [Link]([Link]) FALSE
23 Days between dates (endDate - startDate).TotalDays 7.5
24 UTC time [Link] 2025-06-13T[Link].5432109Z
25 Convert to UTC [Link]() 2025-06-13T[Link].5432109Z

Linkedin: [Link]
No Name Function Example Output
26 Convert from UTC [Link](utcDate, [Link]).ToLocalTime() 2025-06-13T[Link].5432109+05:30
27 Current month name [Link]("MMMM") "June"
28 Current day name [Link]("dddd") "Friday"
29 Quarter of year ([Link] - 1) \ 3 + 1 2
30 Days in month [Link]([Link], [Link]) 30
31 Is daylight saving [Link]([Link]) FALSE
32 Timezone offset [Link]([Link]) [Link]
33 Unix timestamp CInt(([Link] - New DateTime(1970,1,1)).TotalSeconds) 1850000000
34 From Unix timestamp New DateTime(1970,1,1).AddSeconds(unixTimestamp) 2025-06-13T[Link]
35 Start of week [Link](-CInt([Link])) 2025-06-08T[Link]
36 End of week [Link](6 - CInt([Link])) 2025-06-14T[Link]
[Link] - [Link] - (If([Link] <
37 Age calculation 35
[Link], 1, 0))
[Link] = [Link] Or [Link] =
38 Is weekend FALSE
[Link]
[Link](0, CInt((endDate - startDate).TotalDays +
1)).Count(Function(d) ([Link](d).DayOfWeek <>
39 Business days between 5
[Link]) And ([Link](d).DayOfWeek <>
[Link]))
New DateTime(If([Link] < 4, [Link] - 1,
40 Fiscal year start 01-04-2025
[Link]), 4, 1)
New DateTime(If([Link] < 4, [Link],
41 Fiscal year end 31-03-2026
[Link] + 1), 3, 31)
42 Fiscal quarter ([Link] - 1) \ 3 + 1 2
43 Is date valid [Link](dateString, Nothing) TRUE
44 Compare dates [Link](date1, date2) -1 (if date1 < date2)
45 Max of two dates If(date1 > date2, date1, date2) 15-06-2025
46 Time difference (endTime - startTime).TotalHours 3.5
New DateTime([Link] - ([Link] Mod
47 Round to hour 2025-06-13T[Link]
[Link]))
New DateTime([Link] - ([Link] Mod
48 Round to minute 2025-06-13T[Link]
[Link]))
49 Truncate seconds [Link](-([Link] % [Link])) 2025-06-13T[Link]
50 Midnight [Link] 2025-06-13T[Link]

Linkedin: [Link]
No Name Function Example Output
51 Noon [Link](12) 2025-06-13T[Link]
52 End of day [Link](1).AddTicks(-1) 2025-06-13T[Link]
53 Start of year New DateTime([Link], 1, 1) 01-01-2025
54 End of year New DateTime([Link], 12, 31) 31-12-2025
55 Is same day [Link] = [Link] TRUE
56 Days in year If([Link]([Link]), 366, 365) 365
57 Weekday name [Link]("dddd") "Friday"
58 Month name [Link]("MMMM") "June"
59 12-hour clock [Link]("hh:mm tt") "03:22 PM"
60 24-hour clock [Link]("HH:mm") "15:22"
61 ISO 8601 format [Link]("o") "2025-06-13T[Link].5432109+05:30"
62 RFC 1123 format [Link]("R") "Fri, 13 Jun 2025 [Link] GMT"
63 Sortable format [Link]("s") "2025-06-13T[Link]"
64 Universal sortable [Link]("u") "2025-06-13 [Link]Z"
65 Year only [Link] 2025
66 Month only [Link] 6
67 Day only [Link] 13
68 Hour only [Link] 15
69 Minute only [Link] 22
70 Second only [Link] 18
71 Millisecond only [Link] 543
72 Ticks [Link] 6.37921E+17
73 Day of year [Link] 164
74 Is morning [Link] < 12 FALSE
75 Is afternoon [Link] >= 12 And [Link] < 17 TRUE

Linkedin: [Link]
No Name Function Example Output
76 Is evening [Link] >= 17 And [Link] < 21 FALSE
77 Is night [Link] >= 21 Or [Link] < 5 FALSE
78 Time since event [Link] - eventTime 2.[Link]
79 Time until event eventTime - [Link] 1.[Link]
80 Average date New DateTime(([Link] + [Link]) / 2) 2025-06-13T[Link]
81 Next occurrence of day [Link]((targetDay - [Link] + 7) Mod 7) 2025-06-16 (if targetDay=Monday)
Previous occurrence of [Link](-(([Link] - targetDay + 7) Mod
82 2025-06-09 (if targetDay=Monday)
day 7))
New DateTime(year, month, 1).AddDays((nthWeek - 1) * 7 + (targetDay - New
83 Nth weekday of month 2025-06-16 (2nd Monday)
DateTime(year, month, 1).DayOfWeek + 7) Mod 7)
New DateTime(year, month, [Link](year, month)).AddDays(-
84 Last weekday of month ((New DateTime(year, month, [Link](year, month)).DayOfWeek - 2025-06-30 (last Monday)
targetDay + 7) Mod 7)
[Link]([Link],
85 Timezone conversion 2025-06-13T[Link]
[Link]("Pacific Standard Time"))
[Link](", ", [Link]().Select(Function(tz)
86 All timezones "UTC, GMT Standard Time, ..."
[Link]))
87 System uptime [Link]([Link]) 34:56.8
88 File creation time [Link]("C:\[Link]") 2025-06-10T[Link]
89 Process start time [Link]().StartTime 2025-06-13T[Link]
90 High-precision timer [Link]() (Stopwatch object)
91 Time since midnight [Link] - [Link] 22:18.5
92 Time until midnight [Link](1) - [Link] 37:41.5
93 Easter date Function to calculate Easter (complex - requires algorithm) 20-04-2025
New List(Of DateTime) From {New DateTime([Link], 1, 1), New
94 Holidays calculator DateTime([Link], 7, 4), New DateTime([Link], 12,
25)}.Contains([Link])
95 Min of two dates If(date1 < date2, date1, date2) 10-06-2025

Linkedin: [Link]

You might also like