Current time: 04-24-2014, 09:23 AM Hello There, Guest! (LoginRegister)

Post Reply 
strtodate php function
12-10-2006, 03:45 PM
Post: #1
strtodate php function
My latest attempt at php couldn't find the function strtodate in the default kiki version of php:

#convert date string (a date in human language) to a date in programming language
$myDates[] = chartTime2(strtodate($cDateStr));

Fatal error: Call to undefined function: strtodate() in /home/.edison/ykfpdata/ykfp.org/php/BOR/proflowchart2.php on line 44

Is there a newer or different function to accomplish the same thing on kiki?

This signature line intentionally blank.
Visit this user's website Find all posts by this user
Quote this message in a reply
12-10-2006, 05:22 PM
Post: #2
strtodate php function
How about strtotime?

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

--
They hired more support help.
Tip me (and DreamHost gets 5%+$0.30) Cut the code: 9999=$99.99 Off
Find all posts by this user
Quote this message in a reply
12-10-2006, 05:52 PM
Post: #3
strtodate php function
That works. Thanks.

http://ykfp.org/php/BOR/proflowchart2.php is my php script that screen scrapes stream flow data from the BOR http://www.usbr.gov/pn-bin/yak/arc3.pl?s...=2006&mont and plots it in a simple chart. Next I'll tackle taking user input for the date range and water parameter and adult salmon count.

This signature line intentionally blank.
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump: