I'm not looking for something powerful, for date format DateFormat is enough but i need to add A.D or B.C like in Anno Domini for dates.
Now i know it's not even a challenge to customize it but I'm looking for best way to do it with the official API so it can adapt to changes in the future.
package:intl'sDateFormatclass should be able to do with theGformatter:Note that negative years seem to be directly assumed to be BC; that is, a year of -1 seems to be treated as 1 BC. This might not be what you expect if you want year 0 to be invalid.