Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    New Coder
    Join Date
    Apr 2006
    Location
    Tadley, UK
    Posts
    63
    Thanks
    5
    Thanked 0 Times in 0 Posts

    Converting Date to TimeStamp

    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

  • #2
    Master Coder
    Join Date
    Dec 2007
    Posts
    6,682
    Thanks
    436
    Thanked 890 Times in 879 Posts
    Quote Originally Posted by Webmonkey View Post
    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

  • Users who have thanked oesxyl for this post:

    Webmonkey (08-06-2008)

  • #3
    New Coder
    Join Date
    Apr 2006
    Location
    Tadley, UK
    Posts
    63
    Thanks
    5
    Thanked 0 Times in 0 Posts
    Thanks for your help. I will thank you on your post

  • #4
    New Coder
    Join Date
    Apr 2006
    Location
    Tadley, UK
    Posts
    63
    Thanks
    5
    Thanked 0 Times in 0 Posts
    Fixed it sorry for bumping


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •