getMonthsInDuration()

Returns the number of months in a duration.

getMonthsInDuration(Duration duration)

duration: Type: Duration. The duration object returned by $A.localizationService.duration.

Type: number The number of months in the duration.

See Also