Advertisement

Change the month format from February to Feb

General questions relating to Joomla! 3.x.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting.
Forum Post Assistant - If you are serious about wanting help, you should use this tool to help you post.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10
Post Reply
nganha
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Wed Feb 19, 2025 10:11 am

Change the month format from February to Feb

Post by nganha » Wed Feb 19, 2025 10:27 am

Dear all,
I want to change the month format to shorter,
Example: "Post on 18, February, 2025" to "Post on 18, Feb, 2025"
How can i do it? please help
Thank all!

Advertisement
User avatar
Jeff71
Joomla! Intern
Joomla! Intern
Posts: 83
Joined: Thu Dec 25, 2008 11:26 am
Location: France / Burgundy

Re: Change the month format from February to Feb

Post by Jeff71 » Wed Feb 19, 2025 12:55 pm

Hello,

You could play with languages overrides
Search for the consant the text "september" and create override with the new text "sept"
Do the same for the other months

Have a good day

JF

User avatar
AMurray
Joomla! Master
Joomla! Master
Posts: 10554
Joined: Sat Feb 13, 2010 7:35 am
Location: Australia

Re: Change the month format from February to Feb

Post by AMurray » Wed Feb 19, 2025 9:44 pm

To generate the date in the first place you'd need to use PHP codes for date formats (?) in your coding.
https://www.php.net/manual/en/datetime.formats.php

Whatever you're trying to change might need a layout override (more than a language override).

This extension could be handy - allows you to replace values in the database with other values e.g. September to Sept etc.

https://extensions.joomla.org/extension/db-replacer/ or its companion, https://extensions.joomla.org/extension ... ereplacer/ which replaces the text but doesn't affect the database.
Regards - A Murray
Global Support Moderator

User avatar
Per Yngve Berg
Joomla! Master
Joomla! Master
Posts: 31659
Joined: Mon Oct 27, 2008 9:27 pm
Location: Romerike, Norway

Re: Change the month format from February to Feb

Post by Per Yngve Berg » Thu Feb 20, 2025 5:09 am

There is Date/Time Format variable in the Language String. They are set by Language Packs.

SharkyKZ
Joomla! Virtuoso
Joomla! Virtuoso
Posts: 3182
Joined: Fri Jul 05, 2013 10:35 am
Location: Parts Unknown

Re: Change the month format from February to Feb

Post by SharkyKZ » Thu Feb 20, 2025 8:28 am

Create an override of DATE_FORMAT_LC3 language string. But this will affect all places where this date format is used. If you don't want that, you have to create a layout override instead.

Advertisement

Post Reply

Return to “General Questions/New to Joomla! 3.x”