Where to change date format

Post your Click counter digestion problems here
Post Reply
wellandg
Posts: 2
Joined: Thu Dec 30, 2021 12:06 pm

Where to change date format

Post by wellandg »

Script URL:
Version of script:
Hosting company:
URL of phpinfo.php:
URL of session_test.php:
What terms did you try when SEARCHING for a solution:

Write your message below:

Want to change date format in the admin panel from US (YYYY-MM-DD) to UK (DD-MM-YYYY). Which file is the setting in?

Wellandg
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Re: Where to change date format

Post by Klemen »

There's no setting for it, you will need to change code

Code: Select all

date('Y-m-d')
to

Code: Select all

date('d-m-Y')
in file admin/new_link.php

Note that this will only affect new links you add. For existing ones, you will need to edit the dates in ccount_database.php file. It is really easy to mess up the database file, so back it up before making changes!
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
wellandg
Posts: 2
Joined: Thu Dec 30, 2021 12:06 pm

Re: Where to change date format

Post by wellandg »

Thanks for the help
Post Reply