Welcome Guest, Not a member yet? Register   Sign In
Getting day, month and year apart from Db
#2

(This post was last modified: 03-12-2018, 12:31 PM by enelson.)

I store dates in the db as UNIX timestamps, this way it's easy to change the value.
You can then format the timestamps to a human readable date, this might help https://stackoverflow.com/a/29481073 .

Use
Code:
<input type="date" ...>
to edit the date at the frontend. See https://developer.mozilla.org/en-US/docs...input/date
Reply


Messages In This Thread
RE: Getting day, month and year apart from Db - by enelson - 03-12-2018, 12:20 PM



Theme © iAndrew 2016 - Forum software by © MyBB