That doesnt answer my questions unfortunately, as you can see, i have a lead time start date and a lead time (days) which i need to add to the start date.
Main Topics
Browse All TopicsHello Experts,
Probably very simple for a lot of you... i need to convert the following ASP code into PHP.
The desired output is ' DAY - DD/MM/YYYY' (WED 11/03/2009)
ASP Code:
obj.Add "actionby", GetDayName(CDate(CDrs("Ord
PHP Code:
$obj->actionby = (string) $rec["OrderLeadTimeStartDa
Thanks in advance.
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
I do not know PHP to well. and have not used it for a long time.
But I found this, see if it will help.
Carrzkiss
http://php.about.com/od/fi
Other link - http://www.w3schools.com/P
another site as well
http://us.php.net/date
Dave
I am not familuar with PHP. When I did use it years ago on OSCommerce site.
I hated it with a passion. I hate working with codes that I do not completely understand
Or have some kind of knowledge about.
The last link provided has an abundance of information that I am sure will show/teach you
What you need to know to jump start your coding needs in PHP.
Maybe sometime in the future I will play around with PHP, but not likely into soon.
Good Luck in your PHP Ventures.
Carrzkiss
Got it;
function addDayToDate($timeStamp, $totalDays){
// You can add as many days as you want. mktime will accumulate to the next month / year.
$thePHPDate = getdate($timeStamp);
$thePHPDate['mday'] = $thePHPDate['mday']+$total
$timeStamp2 = mktime($thePHPDate['hours'
return date("D d/m/Y", $timeStamp2);
}
$obj->actionby = (string) addDayToDate(strtotime($re
are u looking for something like this ?
<?php
$LeadTimeStartDate = date('d/m/Y');
echo "start : $LeadTimeStartDate";
echo "<br/>";
$LeadTime = 4;
echo "<br/>";
$myDate = date("D d/m/Y",strtotime("$addBoth
echo "Desired result: $myDate";
?>
out put
start : 11/03/2009
Desired result: Sun 15/03/2009
Business Accounts
Answer for Membership
by: gawaiPosted on 2009-03-11 at 07:07:18ID: 23857347
if u like to format a date like WED 11/03/2009
<?php
$myDate = date('D d/m/Y');
echo $myDate;
?>