# Months Ago

Returns the number of months since a given date variable. Statamic will attempt to parse any string as a date, but try to keep it in the least ambiguous date format possible.

```yaml
date: October 1 2017
```

::tabs

::tab antlers
```antlers
{{ date | months_ago }}
```
::tab blade
```blade
{{ Statamic::modify($date)->monthsAgo() }}
```
::

```html
{{ test_date | months_ago }}
```