/** * The user's birthday, typed to {@code java.util.Date} if possible. * * @return The user's birthday, or {@code null} if unavailable or only available in month/year format. */ public Date getBirthdayAsDate() { if (isBlank(getBirthday()) || getBirthday().split("/").length < 2) { return null; } return toDateFromShortFormat(birthday); }
/** * The user's birthday, typed to {@code java.util.Date} if possible. * * @return The user's birthday, or {@code null} if unavailable or only * available in month/year format. */ public Date getBirthdayAsDate() { if (isBlank(getBirthday()) || getBirthday().split("/").length < 2) return null; return toDateFromShortFormat(birthday); }