Home Segments Index Top Previous Next

535: Mainline

To obtain an object representing the current date, you send a today message to the Date class:

Date today 

To obtain an object representing a specific day in a specific month of a specific year, you send a newDay:monthNumber:year: message:

Date newDay: 1 monthNumber: 1 year: 2000