Can be collapsed to ternary
```js
month = elm_month.hasClass( "textformat" ) ? $.inArray( elm_month.text(), i18nText.monthNames ) : elm_month.text() - 1;
```
Then the `digit` var can be removed