reddit / emacs

Is there some formatting variable that sets the time string returned by org-time-stamp-inactive?

vfclists · 2022-06-04 15:38
`org-time-stamp-inactive` - `C-u C-c !` returns a string of the form `2022-05-04 Sat 16:21` but I want to change it to `2022-05-04 16:21 Sat`, which means I can trim the last 4 characters to make it arithmetic and database compatible OOTB. Can it be configured to remove the day string?
organic-bookworm · 2022-06-04 18:54
If you just want to use Org's UI for timestamp input in arbitrary places, here's the snippet (format-time-string "%Y-%m-%d %H:%M" (org-read-date t t nil))