Skip to content

Latest commit

 

History

History
24 lines (17 loc) · 543 Bytes

Date.getYears.md

File metadata and controls

24 lines (17 loc) · 543 Bytes

Date.getYears

The getYears function is established to get years to now.

Sample

var date=Date.parse("1980/01/01","yyyy/MM/dd");
var years=date.getYears();

API

CallingReturning
{Date} . getYears ( )Number
{Date} . getYears ( current )Number
ParametersTypeDescription
currentDateA date as the current date.