DateTime

Update DateTime

7min

This action allows you to update a specific subdivision of a DateTime.

Document image


Inputs & Outputs

  • [ I ] Date: DateTime to be updated.
  • [ I ] Unit of time: Drop-down to choose which subdivision of the Date is to be updated.
    • Year
    • Month
    • Day
    • Hours
    • Minutes
    • Seconds
  • [ I ] Change amount: Integer representing the change to be applied to the Unit Of Time.
  • [ O ] Updated date: DateTime after update.
Document image


Example Usage

  • Drag action onto canvas to get familiarized with it.
Document image

  • Declare some variables to be used with the action.
Document image

  • Assign the newly created variables.
Document image

  • Save & Run the process and then Check Instance to see the output.
Document image


Use Cases

  • Updating a specific subdivision from a DateTime.
  • Switching between time zones using offsets.

Tips

  • Subtracting is also possible by using - before the value inside Change amount.