0CodeKit icon

0CodeKit

A toolbox of no-code utilities

Actions132

Date and Time → Check if Weekend

AI-generated

Overview

The node provides a utility to check if a given date falls on a weekend. This is useful in workflows where actions depend on whether a specific day is a weekday or weekend, such as scheduling tasks, sending notifications, or applying different business rules based on the day type.

For example, you might use this node to:

  • Automatically skip processing on weekends.
  • Trigger special weekend promotions or alerts.
  • Adjust deadlines or reminders that should only occur on weekdays.

Properties

Name Meaning
Date The date string to check if it falls on a weekend. Example format: "2023-01-01".

Output

The node outputs JSON data indicating whether the provided date is a weekend day. The exact structure is not fully detailed in the source, but typically it would include a boolean field such as isWeekend or similar to represent the result.

No binary data output is indicated for this operation.

Dependencies

  • Requires an API key credential for authentication with the external service at https://prod.0codekit.com.
  • The node sends a POST request to the endpoint /dateandtime/isweekend with the date in the request body.
  • Proper configuration of the API key credential in n8n is necessary for successful execution.

Troubleshooting

  • Invalid Date Format: If the input date is not in a recognized format, the API may return an error or incorrect results. Ensure the date string follows a standard format like ISO 8601 (e.g., "YYYY-MM-DD").
  • Authentication Errors: Missing or invalid API key credentials will cause authentication failures. Verify that the API key is correctly set up in n8n.
  • Network Issues: Connectivity problems to the external API endpoint can cause timeouts or errors. Check network access and proxy settings if applicable.
  • Empty Input: Providing an empty or missing date value will likely result in an error or no meaningful output. Always supply a valid date string.

Links and References

  • No direct links are provided in the source code. For more information, consult the documentation of the external service at https://prod.0codekit.com or the n8n community forums for usage examples related to date utilities.

Discussion