The 'GetMinCount' function calculates the days from 1st January 1 to the specified date. (The intercalation is applied to the calculation.)
DWORD GetDayCount(int year, int month, int day);
Parameters
int year : year that you want to specify
int month : month that you want to specify
int day : day that you want to specify
Return Value
the number of the days
Example
dayhap = @GetDayCount(2011, 12, 1);
Description : '734471', the calaulated result, is stored in the variable named 'dayhap'.
Reference