Save Shortcuts Rev B
This commit is contained in:
@ -7,14 +7,20 @@ internal abstract class PersonBirthday
|
||||
|
||||
// ...
|
||||
|
||||
internal static Models.PersonBirthday? GetPersonBirthday(string personBirthdayFormat, string personKey)
|
||||
internal static Models.PersonBirthday? GetPersonBirthday(string personBirthdayFormat, string personKeyFormatted)
|
||||
{
|
||||
Models.PersonBirthday? result;
|
||||
DateTime? dateTime = IPersonBirthday.GetDateTime(personBirthdayFormat, personKey);
|
||||
if (dateTime is null)
|
||||
DateTime? dateTime;
|
||||
if (personKeyFormatted.Length != personBirthdayFormat.Length)
|
||||
result = null;
|
||||
else
|
||||
result = new(dateTime.Value);
|
||||
{
|
||||
dateTime = IPersonBirthday.GetDateTime(personBirthdayFormat, personKeyFormatted);
|
||||
if (dateTime is null)
|
||||
result = null;
|
||||
else
|
||||
result = new(dateTime.Value);
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user