print calendar between two dates

Print Custom Calendar Between Two Dates

By Joshua Moore
AD

Ever needed to generate a print calendar for a specific period? Whether it's for a school year, a marketing campaign, or a personal planner, creating a calendar between two dates can save you time and ensure you're organized. Let's delve into how you can achieve this.

In this guide, we'll explore two common methods: using Google Sheets and Excel, and coding with JavaScript and HTML. Both methods will allow you to create customizable calendars tailored to your needs.

Creating a Calendar with Google Sheets/Excel

For those who prefer user-friendly interfaces, Google Sheets or Excel are excellent tools.

AD
2 Month Printable Calendar
2 Month Printable Calendar
2026 Two Months per page vertical stacked printable calendar
2026 Two Months per page vertical stacked printable calendar
October and November Calendar on One Page - Free Printable Bimonthly Design
October and November Calendar on One Page - Free Printable Bimonthly Design

First, you'll need to set up your sheet structure. Create headers for 'Date', 'Day', and 'Events'. Then, use formulas to populate the 'Date' and 'Day' columns. For example, enter "=EDATE(A1,-1)" in A2 and drag it down to auto-populate dates.

Using Google Apps Script for Automation

Google Apps Script allows you to automate this process. Here's a simple script you can use:

April and May calendar
April and May calendar
Editable Calendar Template with Date Display and Editable Calendar Template, editable calendar
Editable Calendar Template with Date Display and Editable Calendar Template, editable calendar
Blank June and July 2027 Calendar
Blank June and July 2027 Calendar

function generateCalendar(startDate, endDate) { var sheet = SpreadsheetApp.getActiveSpreadsheet().getActiveSheet(); var range = sheet.getRange('A1:' + sheet.getLastRow() + 'C'); range.clearContents(); var d = new Date(startDate); var targetdate = new Date(endDate); var dateFormat = SpreadsheetApp.newDataValidation().requireDateFormat().build(); var dayFormat = SpreadsheetApp.newDataValidation().requireTextBetween("Mon", "Sun").build(); while (d <= targetdate) { sheet.appendRow([d, d.getDay(), '']); d.setDate(d.getDate() + 1); } }

Customizing the Calendar

Once your calendar is generated, you can customize it with conditional formatting, freeze the top row, or add a calendar view using add-ons.

AD

Creating a Calendar with JavaScript and HTML

For a more hands-on approach, you can directly code your calendar using JavaScript and HTML.

Printable Quarterly Calendar 2026 Q2 – Stay Organized with This Free Template
Printable Quarterly Calendar 2026 Q2 – Stay Organized with This Free Template
January And February 2024 Calendar
January And February 2024 Calendar
Two Blank Calendars in a Full Page Layout
Two Blank Calendars in a Full Page Layout
🇮🇪 Yearly Planner 2026 with Holidays (Ireland)
🇮🇪 Yearly Planner 2026 with Holidays (Ireland)
2 Month Calendar with Week Number
2 Month Calendar with Week Number
How to Create Year and School Calendar with Dynamic Date Markers » The Spreadsheet Page
How to Create Year and School Calendar with Dynamic Date Markers » The Spreadsheet Page

First, create your HTML document's basic structure. Then, use JavaScript to dynamically generate your calendar. Here's a simple example:

Defining the Calendar Structure

AD

Populating the Calendar

var calendar = document.getElementById('calendar'); var currentDate = new Date(); var currentMonth = currentDate.getMonth(); var currentYear = currentDate.getFullYear(); var daysInMonth = new Date(currentYear, currentMonth + 1, 0).getDate(); populateCalendar(currentYear, currentMonth, daysInMonth); function populateCalendar(year, month, days) { calendar.innerHTML = '

april and may 2025 calendar May And June 2024 Calendar, May And June Calendar, May And June Calendar Printable, May And June Calendar Template, Printable May And June Calendar, May And June Calendar 2024, June 2024 Calendar With Holidays, May And June 2021 Calendar, June 2019 Holidays Calendar Template
april and may 2025 calendar May And June 2024 Calendar, May And June Calendar, May And June Calendar Printable, May And June Calendar Template, Printable May And June Calendar, May And June Calendar 2024, June 2024 Calendar With Holidays, May And June 2021 Calendar, June 2019 Holidays Calendar Template
Printable Blank Monthly Calendar for Effective Time Management
Printable Blank Monthly Calendar for Effective Time Management
Printable 3 Month/Quarterly Calendar 2026 | Quarter 3 | Printyourcalendar
Printable 3 Month/Quarterly Calendar 2026 | Quarter 3 | Printyourcalendar
'; var firstDay = new Date(year, month, 1); var weekDay = firstDay.getDay(); for (var i = 0; i < (days + weekDay); i++) { if (i < weekDay || i >= days) { calendar.innerHTML += ' '; } else { calendar.innerHTML += ' '; } } calendar.innerHTML += '
SunMonTueWedThuFriSat' + (i - weekDay + 1) + '
'; }

The final touch? Style your calendar with CSS to match your design preferences. Now you're ready to print your custom calendar!

AD

Creating a print calendar between two dates can be a breeze once you understand the process. Whether you prefer user-friendly tools or hands-on coding, the right method for you depends on your needs and level of comfort with each tool. Happy organizing!

AD