Welcome to Dream.In.Code
Become a PHP Expert!

Join 149,774 PHP Programmers for FREE! Get instant access to thousands of PHP experts, tutorials, code snippets, and more! There are 2,601 people online right now. Registration is fast and FREE... Join Now!




convert dates in Unix time format

 
Reply to this topicStart new topic

convert dates in Unix time format

ktsirig
11 Feb, 2007 - 02:13 AM
Post #1

D.I.C Head
**

Joined: 14 Sep, 2005
Posts: 71


My Contributions
Hello all,
I have around 900 dates in the format of DD-MM-YYYY and I want to convert them in Unix time format...
Is there a way to do this? I was thinking of passing them into an array, and then, for each date, I would use the function date() I suppose and get the Unix time format of them... But I don't know the way to do it...

So, for instance, if you have:
$date_to_format='05-10-2006' , how would I get the Unix timestamp?

Thank you in advance!
User is offlineProfile CardPM
+Quote Post

Amadeus
RE: Convert Dates In Unix Time Format
11 Feb, 2007 - 07:10 AM
Post #2

g++ -o drink whiskey.cpp
Group Icon

Joined: 12 Jul, 2002
Posts: 12,351



Thanked: 51 times
Dream Kudos: 25
My Contributions
http://nl2.php.net/mktime

http://ca.php.net/strtotime

User is online!Profile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 1/8/09 06:34AM

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter

Live PHP Help!

PHP Tutorials

Reference Sheets

PHP Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month