?

Search Help Board

PHP FAQ
PHP Articles
PHP Help
Bulletin Board

PHP Manual (NEW!)
First Time PHP'ers
Help with programming
Sql assignment help
PHP Homework Help


C# Help

?
?Re: date format
Author:??(---.cpe.net.cable.roger)
Date:???10-15-03 06:56

try this



//get the variables into the page
$year=$_POST['year'];
$month=$_POST['month'];
$day=$_POST['day'];

//test them for values
if ((!is_null($year))&&(!is_null($month))&&(!is_null($day))){
$date=date("Y-m-d",$year."-".$month."-".$day);
}

?Topics Author? Date
?date format??new
TheJuan 10-14-03 19:45?
?Re: date format??new
bastien 10-15-03 06:56?
?Re: date format??new
Frankster 10-21-03 07:45?
?Re: date format??new
bastien 10-21-03 10:41?
Go to Top??|??Go to Topic??|??Flat View??|??Search?
??|??
New Topic
?Reply To This Message
?Your Name:
?Your Email:
?Subject:
Email replies to this thread, to the address above.
??wrote: > > try this > > > > //get the variables into the page > $year=$_POST['year']; > $month=$_POST['month']; > $day=$_POST['day']; > > //test them for values > if ((!is_null($year))&&(!is_null($month))&&(!is_null($day))){ > $date=date("Y-m-d",$year."-".$month."-".$day); > } ">??

Provided By
Phorum