You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think I'm a bit confused by the localisation dataview uses for date and date/time types of data.
I use Obsidian in English (in About > Language) but for some reason(s), when trying to format a date using dateformat() and Luxon tokens, it seems like I can only get results in the language set at my OS level (not Obsidian).
E.g.: as of today 2023-09-26, if I use this inline query :
=dateformat(date(today), "MMMM")
I do get the month's full name ... but not in English 🤷♀️ .
The month's full name appears in my effective locale, in the language I've set at my OS level.
As I'm not very used to Dataview queries, I just would like to know if this is the expected behaviour of dateformat() 😊 ...
I mean, I just would like to be sure that this is not a bug (😇 ).
I can only guess that to bypass this and get my date and date/time displayed in English (when wanting a more "verbose" format than my usual ISO format) I'll need to rely on DataviewJS to do so 🤔 ...
Thank you very much in advance for any insight 🙌 !
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi there 😇 !
I think I'm a bit confused by the localisation dataview uses for date and date/time types of data.
I use Obsidian in English (in
About
>Language
) but for some reason(s), when trying to format a date usingdateformat()
and Luxon tokens, it seems like I can only get results in the language set at my OS level (not Obsidian).E.g.: as of today
2023-09-26
, if I use this inline query :I do get the month's full name ... but not in English 🤷♀️ .
The month's full name appears in my effective locale, in the language I've set at my OS level.
As I'm not very used to Dataview queries, I just would like to know if this is the expected behaviour of
dateformat()
😊 ...I mean, I just would like to be sure that this is not a bug (😇 ).
I can only guess that to bypass this and get my date and date/time displayed in English (when wanting a more "verbose" format than my usual ISO format) I'll need to rely on
DataviewJS
to do so 🤔 ...Thank you very much in advance for any insight 🙌 !
Beta Was this translation helpful? Give feedback.
All reactions