Date format confusion

Hi, new Logseq user here!
I am confused about the date formats. I find three different

  1. The journal files get the filename “2021_08_22”. I Have this string in config.edn (1:st line): :journal/file-name-format “yyyy-MM-dd”
    but it does not change anything.
  2. Then when I reference a date I need to enter “Aug 22nd, 2001”. “2021-08-22” or “2021_08_22” does not work.
  3. Then in the date picker for /sceduled the string is “2021-08-22 Sun”. And clicking on that date change nothing.

So three different date formats? I would like file names and date strings to be “YYYY-MM-DD” (ISO). Then if the program renders it as “Aug 22 2021 Sunday” it is fine.

Date formats can be chosen both in the meny and as texts in the .edn files, but no description of what it affects?

2 Likes

Something like this happened to me, turned out to be a problem with my config.edn file which was corrupted by an extra } somewhere.

Hi, thanks for helping out!
I have checked that now. only one opening and one closing curly. Moved the string inside the brackets. Still not working.

I know this is an old post, but have you figured it out?

I’m using that same setting and everything works, but at first I didn’t realize that I’d have to reindex.

Cheers!

Yes, suddenly all the files got the correct format. I think a restart or reindex did it.
I still dont know how to format the date in the headers in the journal without destroying something.

1 Like

This thread is a little old, but still relevant for me. I have started to use Logseq, using OneDrive. When I open journal files created on a Win 11 laptop on my Mac they get renamed from YYYY-MM-DD to YYYY_MM_DD. Does anybody have an idea?

Welcome. Check How to set the journal filename (.md) with - not _?

1 Like