Date to Timestamp? |
[eluser]zeedy2k[/eluser]
Anyone able to tell me how I can convert DD/MM/YYYY to a Unix timestamp? I have looked everywhere and cant figure this out. Thanks Robert
[eluser]mironcho[/eluser]
Hi Robert, You can achieve this by using mktime (as Seppo said) or strtotime functions: Code: $some_date = '22/05/2008'; More info about both: http://php.net/manual/en/function.strtotime.php http://php.net/manual/en/function.mktime.php
|
Welcome Guest, Not a member yet? Register Sign In |