Get Year Month Day

Extracts the year, month, and day elements from an input date.

Inputs

Date
A String object that represents the date.

Format
A String object that represents the date's format.

Output

Returns three integers: one that specifies the year, one that specifies the month, and one that specifies the day.

Copyright IBM Corp. 2003, 2004