Sample Code:
Date dt = System.today(); //current date Integer day = dt.Day(); //get day Integer month = dt.Month(); //get month Integer year = dt.Year(); //get year
Sample Code:
Date dt = System.today(); //current date Integer day = dt.Day(); //get day Integer month = dt.Month(); //get month Integer year = dt.Year(); //get year