Please enable JavaScript to view this site.

 

int = chYearOf(nWesternDate)

 

This macro function returns the year number part of the Chinese date corresponding to the date nWesternDate.

 

➢This number ranges from 1 to 60 and then repeats. To get the rarely used full year number (4701 in 2003) you should use the chFullYearOf function.

nFullYear = chFullYearOf(n_TokenDate)
nChYear = ((nFullYear-1) mod 60) + 1
// the above calculation should give the same result as
nChYear2 = chYearOf(n_TokenDate)

See also: chinese dates functions.

 


Topic 160200, last updated on 18-Apr-2020