DateTime
Work with dates, times, and time zones in your automation workflows.
Overview
The DateTime package provides essential operations for handling dates and times. Use it when you need to format dates, calculate time differences, convert between time zones, or perform date arithmetic.
Key Features
- Current Time - Get current date and time
- Date Formatting - Convert dates to various string formats
- Time Arithmetic - Add or subtract time periods
- Time Zone Conversion - Convert between different time zones
- Date Components - Extract year, month, day, etc.
Available Nodes
- Now - Get the current date and time
- Format Time - Convert date to formatted string
- Add Time - Add duration to a date (days, hours, minutes, etc.)
- Time Span - Calculate difference between two dates
- Convert Timezone - Change date to different time zone
- Split Date - Extract individual components (year, month, day, etc.)
- Is Leap Year - Check if a year is a leap year
When to Use This Package
- Scheduling: Calculate future dates for scheduling tasks
- Reporting: Format dates for reports and logs
- Data Processing: Parse and standardize dates from various sources
- Time Zone Handling: Convert times for global operations
- Date Validation: Check and compare dates
Common Use Cases
- Generate timestamps for file names
- Calculate due dates (e.g., "30 days from now")
- Format dates for different locales
- Find the difference between two dates
- Convert UTC times to local time zones
Format Strings
Common format patterns:
YYYY-MM-DD- 2024-01-15DD/MM/YYYY- 15/01/2024MMMM D, YYYY- January 15, 2024HH:mm:ss- 14:30:00
📄️ Add Time
Robomotion.DateTime.Add
📄️ Convert Timezone
Robomotion.DateTime.ConvertTimezone
📄️ Format Time
Robomotion.DateTime.Format
📄️ Is Leap Year
Robomotion.DateTime.Leap
📄️ Now
Robomotion.DateTime.Now
📄️ Split Date
Robomotion.DateTime.Split
📄️ Time Span
Robomotion.DateTime.Span