How to display timestamp in tables in d:m:Y h:i:s format in php? [duplicate] - Hack The Tech - Latest News related to Computer and Technology

Hack The Tech - Latest News related to Computer and Technology

Get Daily Latest News related to Computer and Technology and hack the world.

Sunday, September 3, 2023

How to display timestamp in tables in d:m:Y h:i:s format in php? [duplicate]

This is the code that i already have. The name of the column is "date and time of purchase" (in croatian datum_vrijeme_kupnje). Its values are displayed (from database) in Y:m:d H:i:s format. I don't want this kind of format.

I don't have any additional variables or something.

The result i have is:

e.g. 2023.12.01. 12:20:06 . I would like to have: 12.01.2023. 12:20:06.

So i want to know how to write the code above so i can get displayed timestamp in d:m:Y h:i:S format. Thanks.



source https://stackoverflow.com/questions/77029341/how-to-display-timestamp-in-tables-td-in-dmy-his-format-in-php

No comments:

Post a Comment