argenos / nldates-obsidian

Work with dates in natural language in Obsidian
MIT License
497 stars 46 forks source link

Support parsing DD/MM #18

Closed keikhcheung closed 3 years ago

keikhcheung commented 3 years ago

Dates like 4/5 get parsed as 5 April instead of 4 May. It would be great to have an option in the settings for locale/format preference.

argenos commented 3 years ago

I am not sure this is possible without changing the parser itself, see my comments in #19, especially this:

for parsing dates, the package I'm using has limited support for parsing other languages

Instead of using 4/5, I'd recommend using the shorthand version Apr5.

liamcain commented 3 years ago

Note: NLDates will now follow use the same locale as Obsidian. If you need to explcitly override your locale, a few plugins give you that option. The Calendar plugin, for example, let's you specify the locale globally.