Tutorial 004: How to Check if a Date is a Weekend or Weekday

Learn how to set up the Is Weekend API to find out if a date is a weekend or weekday. Follow our clear guide or watch the quick video tutorial for easy setup.

Published
November 7, 2024

Are you a person that likes to plan ahead? If you do, don't you find it tiresome to scroll through your calendar to find out what day of the week is a specific date? Well, those days are over because our Is Weekend API can check if a specific date is a weekday or weekend. In this blog, we'll show you how this feature can be set up.

Not a fan of reading? No problem! Check out our quick, easy-to-follow video tutorial to learn everything you need!

Setting Up the Weekend Detection Module

First, we need to log in or sign up in Make and create a scenario. Then, we have to click on the empty module and an App menu will pop up. We now select the 0CodeKit app and search for the feature "Check if a Day is Weekend or Working Day". It will automatically ask you to create the connection between 0CodeKit and Make, which can be done with your 0CodeKit API key.

This module is easy to set up. You just need to enter the date in any of the following formats:

  • USA format: MM/DD/YYYY
  • EUR format: DD.MM.YYYY

Finally, we have to click on "OK" and execute it. The Is Weekend API will process this request and it will return what day of the week it is and if it is a weekend or not. In this case, the date "May 29, 2028" is a Monday (1) and is not a weekend (therefore, the result if "false").

In Conclusion

top scrolling through calendars! Instead, implement this endpoint into your workflows and find any date in a matter of seconds. If you would like to know how to use other 0CodeKit features, head to our YouTube channel for more tutorials.

What’s a Rich Text element?

The rich text element allows you to create and format headings, paragraphs, blockquotes, images, and video all in one place instead of having to add and format them individually. Just double-click and easily create content.

Static and dynamic content editing

A rich text element can be used with static or dynamic content. For static content, just drop it into any page and begin editing. For dynamic content, add a rich text field to any collection and then connect a rich text element to that field in the settings panel. Voila!

How to customize formatting for each rich text

Headings, paragraphs, blockquotes, figures, images, and figure captions can all be styled after a class is added to the rich text element using the "When inside of" nested selector system.