Jump to content

Get list of dates that will fall on specific day of the week between two dates


ParkLoey

Recommended Posts

Hi there! I just wanted to share how I used Caspio's AI-powered GPT Connect to find all the dates that fall on a specific day of the week between two given dates.

I had always wanted to add this feature to my app, but I couldn't quite figure it out with calculations, and triggers definitely aren't my strong suit!

Here's my request for getting all the dates that will fall on Mondays between my start and end date values:

get the dates that will fall on a Monday between [@field:DateStart] and [@field:DateEnd]. Return only the list of result in the following format:
 
1: long date
2: long date

Here's the response:
image.png.9df165f7ac1e97cf07a11f91d3952a52.png

The good thing about using this feature is that I can freely change the format on how I want the result to be like without going through extensive SQL 🥲

I created this value so I know when I need extra people for my company whenever an employee is on leave. I hope this helps other users with the same needs!

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...