GlideSystem - monthsAgo(Number months)

Returns a date and time for a specified number of months ago.

Table 1. Parameters
Name Type Description
months Number Integer number of months
Table 2. Returns
Type Description
String GMT on today's date of the specified month, in the format yyyy-mm-dd hh:mm:ss

Scoped equivalent

To use the monthsAgo() method in a scoped application, use the corresponding scoped method: Scoped GlideSystem - monthsAgo(Number months).