Save Shortcuts Rev B

This commit is contained in:
2022-10-09 12:02:38 -07:00
parent d951ad6696
commit b0b4c20597
20 changed files with 302 additions and 180 deletions

View File

@ -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;
}