Configuring Business Hours and Closed Days Calendar
The Calendar configuration format is a JSON object where each key represents a day of the week or a specific date. The value against each key specifies the working hours for that day or indicates that the business is closed.
Keys
Days of the Week: The keys for regular days are the full names of the days: "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", and "Sunday".
Specific Dates: For specific dates, the keys are in the format "YYYY-MM-DD" (e.g., "2023-12-25", "2024-01-01").
Values
Business Hours: The value for a regular business day is a string indicating the opening and closing times, separated by a comma for a lunch break or other interval. For example, "09:00-12:00, 13:00-17:00" indicates that the business is open from 9:00 AM to 12:00 PM and then from 1:00 PM to 5:00 PM.
Closed Days: For days when the business is closed, the value is an empty string ("").
Example Format
{
"Monday": "09:00-12:00, 13:00-17:00",
"Tuesday": "09:00-12:00, 13:00-17:00",
"Wednesday": "09:00-12:00, 13:00-17:00",
"Thursday": "09:00-12:00, 13:00-17:00",
"Friday": "09:00-12:00, 13:00-17:00",
"Saturday": "",
"Sunday": "",
"2023-12-25": "",
"2024-01-01": ""
}
Guidelines for Use
Ensure each day or date is enclosed in double quotes.
Time periods should be in a 24-hour format.
Separate multiple time periods in a day with a comma.
Use an empty string for days the business is closed.