Find out if calendar is gregorian or not

How do I find out of a user has a gregorian calender or - say - a buddhist one? I’ve had the first user ever with a buddhist calendar and not even registration worked, let alone all my date math. I would like to show at least some warning that my app works only for gregorian calendars.

maybe you can tell the user what kind of calendar input you expect.
buddhist have a different year offset.

i think you need some os api.

you found one of 14 calendars :exploding_head:

@Christian_Schmitz : is anything in the MBS plugin available to find out if the calendar is gregorian or not?

Well, something like NSCalendarMBS.currentCalendar.calendarIdentifier=“Gregorian” or so vs. buddhist for example.

2 Likes

Thanks!