checkPartialDate

fun checkPartialDate(prop: DateOrTimeProperty)

In contrast to vCard 4, there are no dates without year (like birthdays) in vCard 3. As a workaround, many servers use this format:

BDAY;X-APPLE-OMIT-YEAR=1604:1604-08-20

To use it properly, we have to convert dates of this format to PartialDate (in our example, a PartialDate that represents --0820).

This is what this method is for: it converts dates (y/m/d) with an X-APPLE-OMIT-YEAR parameter to a PartialDate (-/m/d) when the year equals to the X-APPLE-OMIT-YEAR parameter.

prop's DateOrTimeProperty.date must be a LocalDate, LocalDateTime or OffsetDateTime for this to work. Instant values will be ignored.

Parameters

prop

date/time to check for partial dates; value may be replaced by PartialDate