# Create a custom date format for the DateTime Joomla! Module

> We’ve got many support tickets about how to add a custom date format in the DateTime Joomla! module. Below are three easy steps to create your own date format based in your Country. For example, we want to display this date format “dddd, dd-mm-yyyy”, which is for Germany.

- URL: https://www.web357.com/blog/create-a-custom-date-format-for-the-datetime-joomla-module
- Published: 2016-09-15
- Updated: 2025-08-20
- Categories: [joomla](https://www.web357.com/blog/category/joomla)

![Create a custom date format for the DateTime Joomla! Module](https://www.web357.com/content/images/datetime.jpg)

We’ve got many support tickets about how to add a custom date format in the DateTime Joomla! module. Below are three easy steps to create your own date format based in your Country.

For example, we want to display this date format “dddd, dd-mm-yyyy”, which is for Germany.

1. Open the file “/modules/mod\_datetime/elements/dateformat.php”

FIND:

```
$date_formats_arr_a = array();
```

REPLACE WITH:

```
$date_formats_arr_a = array();
$date_formats_arr_a["dddd, dd-mm-yyyy"] = "dddd, dd-mm-yyyy (custom)";
```

2. Open the file “/modules/mod\_datetime/helper.php”

FIND:

```
switch ($dateformat):
```

REPLACE WITH:

```
switch ($dateformat):
   case "dddd, dd-mm-yyyy":
   $date = $days[$day_of_the_week].", ".$d."-".$m."-".$year;
   break;
```

3. Save and upload the files. Then navigate to the module parameters and choose your new date format. Save the parameters, refresh your page, and now you have your custom date format using Web357’s DateTime Joomla! Module.

![Custom date format - Screenshot from module parameters](https://www.web357.com/content/images/joomla-datetime-module-custom-date-format.png)

Custom date format – Screenshot from module parameters

### What’s next?

[visit Extension’s Page »](https://www.web357.com/display-date-and-time-joomla-module)  
[Download the DateTime J! module »](http://downloads.web357.com/?item=datetime&type=free)

## Products in this post

- [Live Date and Time Clock](https://www.web357.com/display-date-and-time-joomla-module): A free Joomla module that shows a live date and clock in the format and time zone you choose. ([pricing](https://www.web357.com/display-date-and-time-joomla-module/pricing), [documentation](https://docs.web357.com/display-date-and-time-joomla-module/intro/))

---

Part of [Web357](https://www.web357.com). Site map for agents: [llms.txt](https://www.web357.com/llms.txt), [llms-full.txt](https://www.web357.com/llms-full.txt). Documentation: https://docs.web357.com/. Support: https://www.web357.com/support. Append `.md` to any page URL on this site to read it as Markdown.
