# Updating a unix timestamp date

**URL:** <https://forum.kirupa.com/t/updating-a-unix-timestamp-date/181751>\
**Category:** programming\
**Created:** [March 12, 2006, 7:08pm UTC](https://forum.kirupa.com/t/updating-a-unix-timestamp-date/181751 "2006-03-12T19:08:24Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![foodpk](https://avatars.discourse-cdn.com/v4/letter/f/0ea827/32.png) [@foodpk](https://forum.kirupa.com/u/foodpk)\
**Post date:** [March 12, 2006, 7:08pm UTC](https://forum.kirupa.com/t/updating-a-unix-timestamp-date/181751/1 "2006-03-12T19:08:24Z")

</div>

Hi!  
On my client’s site I use a unix timestamp number in the database to track the date of a news entry. When displaying it, I convert it to a readable DD.MM.YYYY format via the Date() function. Now the thing is, the client now wants to be able to update the date. How would I convert it from a manually entered date via a form to a unix timestamp date in order to save it for a database? Thanks.
