Change date format / user view from forum

Hello, How do I change the date format so that it is 17.6?

Thank you

Is there no option? :confused:

Have you looked through the source code?

The problem is that I can only work directly on the page where I can only use html css and javascript

This is rendered with JavaScript.

Here’s the associated template, perhaps this will help unstick you:

2 Likes

Hello,

If you want to change date format then you can change it on /admin/customize/site_texts/

js.dates.tiny.date_month
default: MMM D change it to D.M
it will change the June 17 to 17.6

js.dates.medium.date_year
default MMM D, 'YY change it to D.M 'YY
it will change the year version June 17, '20 to 17.6 '20

Or something like this :slightly_smiling_face:

Notice: Be careful with this because these will replace the date format wherever it is used not just on user card.

Other date format strings find here:
/admin/customize/site_texts?q=js.dates
/admin/customize/site_texts?q=datetime_formats

5 Likes

YES! Thank you :slight_smile: This is solution for my case :slight_smile:

2 Likes