---
title: "Check if a date is more than a month ago"
author: "Phil Bainbridge"
date: 2019-12-12T10:37:39+00:00
modified: 2019-12-28T08:07:50+00:00
canonical_url: https://pulse.appsscript.info/p/2019/12/check-if-a-date-is-more-than-a-month-ago/
markdown_url: https://pulse.appsscript.info/p/2019/12/check-if-a-date-is-more-than-a-month-ago.md
categories:
  - "Sheets"
  - "Snippet"
tags:
  - "pbainbridge.co.uk"
description: "Recently during a consultation I was asked if it would be possible to check if the date submitted on a Google form was over a month ago, to which I responded \"sure ...\". Admittedly this..."
---

# Check if a date is more than a month ago

> Recently during a consultation I was asked if it would be possible to check if the date submitted on a Google form was over a month ago, to which I responded “sure …”.
> Admittedly this was a lot more difficulty than I thought it would (and should) be – I was bamboozled by online forums and posts suggesting to convert dates into numbers and perform other incoherent functions to achieve this. Eventually however I came across the single JavaScript function that I would need to achieve this feat …… ‘getMonth’.

Source: *[The Gift of Script: Check if a date is more than a month ago*](https://www.pbainbridge.co.uk/2019/04/check-if-date-is-more-than-month-ago.html)

---

*Published by [Phil Bainbridge](https://pulse.appsscript.info/p/author/phillipbainbridge/) on [Pulse](https://pulse.appsscript.info/). Original article: [https://pulse.appsscript.info/p/2019/12/check-if-a-date-is-more-than-a-month-ago/](https://pulse.appsscript.info/p/2019/12/check-if-a-date-is-more-than-a-month-ago/)*
