Date Format

48 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.

Reply all
Reply to author
Forward
0 new messages