Skip to content
This repository has been archived by the owner on Oct 6, 2022. It is now read-only.

Latest commit

 

History

History
23 lines (17 loc) · 539 Bytes

Date.getYears.md

File metadata and controls

23 lines (17 loc) · 539 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.