Actions114
- AI Actions
- AI Advanced OCR
- Check Content Policy
- Detect Adult Content
- Detect Brand
- Detect Color
- Detect Email Type
- Detect Faces
- Enitity Detection
- Extract Contact Information
- Extract Customizable Information From Text
- Fuzzy Text Matcher
- Generate Image
- Generate Javascript Code
- Generate Python Code
- Language Detection
- Mood Detection
- PDF OCR
- Picture Object Recognition
- Picture Text Recognition
- Redact Sensitive Information From PDF
- Too Long To Read
- Transcribe
- Translation
- Business Actions
- Calculate Actions
- Code Actions
- Convert Actions
- Crypto Actions
- Date & Time Actions
- Generate Actions
- Image Actions
- Operator Actions
- PDF Actions
- Storage Actions
- Text Actions
- User Actions
Date & Time → Is Weekend
AI-generatedOverview
This node operation checks if a given date falls on a weekend. It is useful in scenarios where workflows need to branch or trigger actions based on whether a date is a weekend, such as scheduling, business logic, or calendar management.
Use Case Examples
- Check if a specific date is a weekend to decide whether to send a reminder email only on weekdays.
- Determine if a date is a weekend to adjust business process flows accordingly.
Properties
| Name | Meaning |
|---|---|
| Code Variables | Allows defining multiple code variables with names and values to be used in the logic, typically for dynamic date or context handling. |
| Date | The date string to check if it is a weekend. |
| Date Format | The format of the date string provided, to correctly parse the date. |
| Time Zone | The time zone context for the date, to accurately determine weekend status based on local time. |
Output
JSON
isWeekend- Boolean indicating if the given date is a weekend.dayNumber- Numeric representation of the day of the week for the given date.weekDay- Name of the weekday for the given date.
Dependencies
- An API key credential for the 0CodeKit API service to perform date and time operations.
Troubleshooting
- Ensure the date string matches the specified date format to avoid parsing errors.
- Verify the time zone is correctly set to get accurate weekend determination.
- Common errors may include invalid date format or missing required parameters, which can be resolved by providing correct inputs.