Date Format

83 views
Skip to first unread message

Jeremy X

unread,
Jan 25, 2018, 2:56:15 PM1/25/18
to mementodatabase
I have defined a date field.
The date is displayed as "25. Januar 2018".
How can i achieve to get it displayed as "25.01.18" (short date format)?
As far as i know i need java script for that.
But i do not know how to handle it.

-Andreas

Bill Crews

unread,
Jan 25, 2018, 6:33:15 PM1/25/18
to Jeremy X, mementodatabase
On Jan 25, 2018 14:56, "'Jeremy X' via mementodatabase" <memento...@googlegroups.com> wrote:
I have defined a date field.
The date is displayed as "25. Januar 2018".
How can i achieve to get it displayed as "25.01.18" (short date format)?

When in the library edit screen, date fields have, among the advanced parameters, Date formats. Select the one you like the best.

As far as i know i need java script for that.

With JavaScript, you can display anything you like. If you don't like the choices under Date formats, you could keep that field and define another field as a JavaScript field referencing the date field. In that other field, press Add JavaScript libraries; only one will likely be listed: moment.min.js. Select it. Then, read the documentation page at momentjs.com (Home, Docs, Guides) to see how it works and how to display what you want.

Andreas Spelter

unread,
Jan 17, 2026, 11:58:27 AM (yesterday) Jan 17
to mementodatabase
My Memento is using always and everywhere whatever I set as "long format". Whatever I set in "short format" is never used. 
This is true for both date and time. 
Where should I see "short"? 
I would like to use short in lists and long in forms. How? 


David Gilmore

unread,
10:46 AM (7 hours ago) 10:46 AM
to mementodatabase
We probably should find out what system they are using. Windows, Android, or iOS. It may differ between those systems.

Andreas Spelter

unread,
11:09 AM (7 hours ago) 11:09 AM
to mementodatabase
tested on my Android 12 Phone and Android 12 Tablet
Reply all
Reply to author
Forward
0 new messages