I have a date format pattern: MMM yyyy

And want that: if the month name is short cuted a dot is printed after the name. But if the month name is not short cuted no dot is added.

Example:

  • May 2010 should print: May 2010 (without dot) -- May is only 3 letters long, so there is no dot needed, because it is not an abbreviation.
  • December 2100 should print: Dec. 2010 (with dot) -- December is more than 3 letters long, so there is a dot needed, because it an abbreviation.

Is this possible with an pattern, or do I need to implement it by "hand"?

Edit
Report