|
|
|
อยากทราบเรืองการคำนวนระยะเวลาออกมาให้เป็นวันที่อ่ะค่ะ ช่วยทีนะคะ |
|
|
|
|
|
|
|
Code (PHP)
$add_year = 5;
$add_month = 3;
$add_day = 15;
$start_date = "2010-01-01";
echo date("Y-m-d", strtotime("+" . $add_year . " year +" . $add_month . " month +15" . $add_day . " day", strtotime($start_date)));
|
|
|
|
|
Date :
2010-08-29 14:08:34 |
By :
PlaKriM |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Code (VB.NET)
Dim JailStartDate As DateTime = dateTimePicker1.Value
Dim JailExitDate As DateTime = JailStartDate.AddYear(5).AddMonth(3).AddDay(15)
|
|
|
|
|
Date :
2010-08-29 16:32:03 |
By :
tungman |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Load balance : Server 03
|