Skip to main content

Featured

Dhadi Game - An Indian War game

Hi Friends, Today i will introduce an indian traditional board game to android user I am very interested in playing dhadi game with my friends. Now that interest  becomes as an android game Here these are the playing instructions to the dhadi game Dhadi is a traditional indian game with two players.It runs with mind power between 2 players.You can play against your friends Features: Auto Move Suggestions Interesting Graphic View to game Time taken by two players will be shown individually Total movements shows Intresting background sounds and music music and sound on/off feature No permissions are needed to this app. Download the best Dhadi for Android now! https://play.google.com/store/apps/details?id=in.mjtech.daddy

PHP add or subtract days,months,years,time from date("...")

Adding Days


$currdate = date(“Y-m-d”);
$add_day = strtotime(‘+N day’, strtotime($currdate ));
$add_day = date(‘Y-m-d’, $add_day);

or simply use

$add_day = date("Y-m-d", strtotime("+N day", strtotime(date("Y-m-d") )));

it will result $add_day by adding N days to current date


Adding Months


$currdate = date(“Y-m-d”);
$add_month = strtotime(‘+N month’, strtotime($currdate ));
$add_month = date(‘Y-m-d’, $add_month);

it will result $add_day by adding N months to current date


Adding Years


$currdate = date(“Y-m-d”);
$add_year = strtotime(‘+N year’, strtotime($currdate ));
$add_year = date(‘Y-m-d’, $add_year);

it will result $add_day by adding N years to current date

for subtracting just add -N month or -N year or -N day instead of using plus(+N day)
Note:here N is any integer Number like 0,1,2,3,4,.....

Comments

Popular Posts