I have the following line of code which sets the content or a label to a date.
cell.birthdayLabel.text = [[GlobalBirthdaysEditor instance] getFormattedDateString:[birthday getDate]];
I need to find out in the year is equal to 1604 and, if so, not show it.
How can I pull the year from this object?
So, basically looking for code like this:
if (year == 1604)
{
//set the date without the year
} else {
cell.birthdayLabel.text = [[GlobalBirthdaysEditor instance] getFormattedDateString:[birthday getDate]];
}
Thank you!