Strtodate php function

software development

#1

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.


#2

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: [color=#00CC00]9999[/color]=$99.99 Off


#3

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?station=YRPW&year=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.