# Format month labels

**URL:** <https://discourse.jabref.org/t/format-month-labels/1003>\
**Category:** Help\
**Created:** [January 15, 2018, 8:01am UTC](https://discourse.jabref.org/t/format-month-labels/1003 "2018-01-15T08:01:55Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![i2000s](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.jabref.org/i2000s/32/109_2.png) [@i2000s](https://discourse.jabref.org/u/i2000s)\
**Post date:** [January 15, 2018, 8:01am UTC](https://discourse.jabref.org/t/format-month-labels/1003/1 "2018-01-15T08:01:55Z")

</div>

I understand that JabRef has implemented a month-checker so that the current field of `month` in a bibtex file will be unified to `#jan#` formation instead of `jan` (see [issue](https://github.com/JabRef/jabref/issues/2012) of changes). However, this change breaks my bibtex style compatibility. For example, in my `bst` file, I have

```auto
MACRO {jan} {"January"}

```

and it now doesn’t recognize `#jan#` to be `January`. Is there any workaround to solve this compatibility problem? I prefer not to add any lines in my bibtex file manually as it will be changed back when the bibtex file is opened in JabRef. I can modify the bst style file if necessary.

Thanks!

---

<div class="post-metadata">

**Author:** ![mlep](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.jabref.org/mlep/32/387_2.png) [@mlep](https://discourse.jabref.org/u/mlep)\
**Post date:** [January 15, 2018, 8:48am UTC](https://discourse.jabref.org/t/format-month-labels/1003/2 "2018-01-15T08:48:42Z")

</div>

Saving _month = jan_ instead of _month = {jan}_ is a standard BibTeX feature. JabRef did not create this unification of date format, but makes it easier to enforce (Note: JabRef displays #jan# in the month field of the entry editor, but in the .bib file, it really appears as _month = jan_ (have a look at the content of the _BibTeX source_ tab).

Your bst file should be aware of this BibTeX feature. Hence, I would recommend to modify the bst file.

---

<div class="post-metadata">

**Author:** ![i2000s](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.jabref.org/i2000s/32/109_2.png) [@i2000s](https://discourse.jabref.org/u/i2000s)\
**Post date:** [January 15, 2018, 9:16am UTC](https://discourse.jabref.org/t/format-month-labels/1003/3 "2018-01-15T09:16:02Z")

</div>

@mlep Strange, in my .bib file, I always have lines like `month = {\#nov\#}`.

What should I modify in the bst file? I tried using the escaped character formation, but it didn’t work for me.

---

<div class="post-metadata">

**Author:** ![mlep](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.jabref.org/mlep/32/387_2.png) [@mlep](https://discourse.jabref.org/u/mlep)\
**Post date:** [January 15, 2018, 9:52am UTC](https://discourse.jabref.org/t/format-month-labels/1003/4 "2018-01-15T09:52:44Z")

</div>

May be your `month = {\#nov\#}` in the BibTeX file came from a bug in an previous version of Jabref…

I suggest not to alter your bst file but to correct your bib files, so that your bib files follow the BibTeX standards.

The easiest and fastest solution for you may be to modify the .bib files by hand (using a text editor): Find all the occurrences of `month = {\#nov\#}` and replace them with `month = nov`. This has to be done 12 times, which is kind of easy. But be careful to you may have to correct some fields looking like month = {#nov#-#dec#}  
If your text editor is smart, you may be able to remove in one pass all the `\#` of the month field.

---

<div class="post-metadata">

**Author:** ![i2000s](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.jabref.org/i2000s/32/109_2.png) [@i2000s](https://discourse.jabref.org/u/i2000s)\
**Post date:** [January 15, 2018, 10:41am UTC](https://discourse.jabref.org/t/format-month-labels/1003/5 "2018-01-15T10:41:54Z")

</div>

Thank you for the insight. I think since I have been stick to the `dev` branch of JabRef for a while, some bugs in previous versions of JabRef might have been ruined my bibtex file. Not only there is a formation problem with the month field, the stamp date formation has always been affected. Using a notepad to replace all the 12 months, I have fixed the issue.

Close this issue for now!
