...

View Full Version : Converting Date to TimeStamp



Webmonkey
08-07-2008, 12:33 AM
Hello,

I am currently in the process of making a Project Manager for web developers, and I have nearly finished the backbone PHP, with just one problem.

I want the users to be able to enter the date in a friendly way, e.g:
DD/MM/YYYY, and before entering this into the database converting it into a timestamp.

Is this possible and how can I do it, if not, what would you suggest I could do?

Thanks in advance!

Steven

oesxyl
08-07-2008, 12:40 AM
Hello,

I am currently in the process of making a Project Manager for web developers, and I have nearly finished the backbone PHP, with just one problem.

I want the users to be able to enter the date in a friendly way, e.g:
DD/MM/YYYY, and before entering this into the database converting it into a timestamp.

Is this possible and how can I do it, if not, what would you suggest I could do?

Thanks in advance!

Steven
use strtotime:

http://www.php.net/manual/en/function.strtotime.php

regards

Webmonkey
08-07-2008, 12:55 AM
Thanks for your help. I will thank you on your post :p

Webmonkey
08-07-2008, 11:51 AM
Fixed it sorry for bumping



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum