Although .net has a Persian Calendar, it cannot be used as a default calendar for current culture, because it's not one of the calendars returned by CultureInfo.OptionalCalendars
. So, I'm storing them in strings
.
How can I compare Persian Dates?
I'd like to compare different date formats, e.g., '1392/10/14' is less than '1394'. But if it's not possible, it's fine, I might be able to convert all of them to one format.
I don't imagine I can convert them to datetime
, so how can I compare strings
to get a similar result?