Trong bài viết này
Use the Get current date & time action to retrieve the current date và time (or date only, if selected) and store it in a variable. The date format depends on the Windows configuration. To lớn find more information about the syntax of date & time values, go to Variable data types.
Bạn đang xem: Date & kiss tập 2
To địa chỉ various time units to lớn date variables, deploy the Add to datetime action.
To calculate the difference between two dates, use the Subtract dates action. You can retrieve the difference in seconds, minutes, hours, or days.

địa chỉ cửa hàng to datetime
Adds (or subtracts) a specific number of seconds, minutes, hours or days to a datetime value.
Input parameters
Datetime | No | Datetime | The datetime value to alter | |
Add | No | Numeric value | The numeric value lớn add. Khổng lồ subtract a time, the value should be negative. For example, địa chỉ -7 days here to go back one week | |
Time unit | N/A | Seconds, Minutes, Hours, Days, Months, Years | Seconds | The time unit the time to địa chỉ represents |
Variables produced
ResultedDate | Datetime | The new, altered datetime value |
Exceptions
This kích hoạt doesn"t include any exceptions.
Subtract dates
Finds the time difference between two given dates in days, hours, minutes, or seconds.
Input parameters
From date | No | Datetime | The datetime khổng lồ subtract the first datetime from. This will be the base datetime, so generally put the later date/time in this attribute | |
Subtract date | No | Datetime | The datetime lớn subtract | |
Get difference in | N/A | Seconds, Minutes, Hours, Days | Days | The unit of time to express the difference in |
Variables produced
TimeDifference | Numeric value | The difference in time as a numeric value |
Exceptions
This action doesn"t include any exceptions.
Xem thêm: Anh Ơi Anh Ở Lại Và Sự Trở Lại Hoàn Hảo Của Chi Pu, Lời Bài Hát Anh Ơi Ở Lại
Get current date & time
Retrieves the current date or the current date & time.
Input parameters
Retrieve | N/A | Current date and time, Current date only | Current date & time | Specify whether to get the date & time, or just the date. If the latter is chosen, the time value will be stored as midnight (0:00:00) |
Time zone | N/A | System time zone, Specific time zone | System time zone | Whether to lớn use the system"s time zone or a custom one |
Country/region | No | Text value | Europe/Bucharest | The country/region khổng lồ get the time of or showroom a numeric value as the hours that will be added in the UTC time zone |
Variables produced
CurrentDateTime | Datetime | The current datetime value |
Exceptions
Failed to get current date & time | Indicates that there was a problem retrieving the current date và time |
Specified country/region not found | Indicates that the specified country or region wasn"t found |