0CodeKit icon

0CodeKit

A toolbox of no-code utilities

Actions114

Date & Time → Is Weekend

AI-generated

Overview

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

  1. Check if a specific date is a weekend to decide whether to send a reminder email only on weekdays.
  2. 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.

Discussion