PHP Tutorial

Php advanced, mysql database, php examples, php reference, php date_add() function.

❮ PHP Date/Time Reference

Add 40 days to the 15th of March, 2013:

Definition and Usage

The date_add() function adds some days, months, years, hours, minutes, and seconds to a date.

Parameter Values

Advertisement

Technical Details

Get Certified

COLOR PICKER

colorpicker

Contact Sales

If you want to use W3Schools services as an educational institution, team or enterprise, send us an e-mail: [email protected]

Report Error

If you want to report an error, or if you want to make a suggestion, send us an e-mail: [email protected]

Top Tutorials

Top references, top examples, get certified.

  • How to Add Days to Date in PHP

add Method in DateTime() to Add Days in PHP

Date_add() to add days to date in php.

How to Add Days to Date in PHP

Manipulating date string in PHP can be done in many ways, can add or deduct hours, months, years, etc. PHP provides different functions such as DateTime , date_add and combination of strtotime() and date() .

Using PHP version 5.3 and above, DateTime object and it’s add method can also be a solution. DateTime supports more date formats than strtotime and date . Using an object also easier than arbitrary functions. For example, when comparing two dates, it’s direct in DateTime , but in strtotime , converting the date first to timestamp is necessary.

The following code will print output:

The hard part of using DateTime() is the DateInterval object. This accepts a valid interval specification. The proper format starts with the letter P which means period , followed by an integer value, then D for the day. If the duration is time, the last part needs to be T .

Combination of strtotime() and date() to Add Days to Date in PHP

The strtotime() is a PHP function which is used to convert an English textual date description to a UNIX timestamp. The strtotime function will accept a string value that represents date-time.

The following code will output:

The above example will accept a date string with proper format and return the new date using strtotime and +1 days . date() function gave the proper format.

Note: To avoid obscurity, it’s recommended to use ISO 8601 (YYYY-MM-DD) format.

This approach is the easiest among the others to add days, months, years, hours, minutes and seconds.

In application:

The above example also add dates to a date string, date_create() creates a DateTime object. date_interval_create_from_date_string() sets up a DateInterval from the parts of the string. Then finally, date_add() incrementes the date value.

Related Article - PHP Date

  • How to Calculate the Difference Between Two Dates Using PHP
  • How to Convert DateTime to String in PHP
  • How to Convert String to Date and Date-Time in PHP
  • How to Convert One Date Format to Another in PHP
  • How to Get the Current Date and Time in PHP
  • Function Reference
  • Date and Time Related Extensions
  • Date/Time Functions

(PHP 4, PHP 5, PHP 7, PHP 8)

date — Format a Unix timestamp

Description

Returns a string formatted according to the given format string using the given integer timestamp (Unix timestamp) or the current time if no timestamp is given. In other words, timestamp is optional and defaults to the value of time() .

Unix timestamps do not handle timezones. Use the DateTimeImmutable class, and its DateTimeInterface::format() formatting method to format date/time information with a timezone attached.

Format accepted by DateTimeInterface::format() .

Note : date() will always generate 000000 as microseconds since it takes an int parameter, whereas DateTime::format() does support microseconds if DateTime was created with microseconds.

The optional timestamp parameter is an int Unix timestamp that defaults to the current local time if timestamp is omitted or null . In other words, it defaults to the value of time() .

Return Values

Returns a formatted date string.

Errors/Exceptions

Every call to a date/time function will generate a E_WARNING if the time zone is not valid. See also date_default_timezone_set()

Example #1 date() examples

Example #2 Escaping characters in date()

Example #3 date() and mktime() example

Note : This can be more reliable than simply adding or subtracting the number of seconds in a day or month to a timestamp because of daylight saving time.

Example #4 date() Formatting

To format dates in other languages, IntlDateFormatter::format() can be used instead of date() .

Note : To generate a timestamp from a string representation of the date, you may be able to use strtotime() . Additionally, some databases have functions to convert their date formats into timestamps (such as MySQL's » UNIX_TIMESTAMP function).

Timestamp of the start of the request is available in $_SERVER['REQUEST_TIME'] .

  • DateTimeImmutable::__construct() - Returns new DateTimeImmutable object
  • DateTimeInterface::format() - Returns date formatted according to given format
  • gmdate() - Format a GMT/UTC date/time
  • idate() - Format a local time/date part as integer
  • getdate() - Get date/time information
  • getlastmod() - Gets time of last page modification
  • mktime() - Get Unix timestamp for a date
  • IntlDateFormatter::format() - Format the date/time value as a string
  • time() - Return current Unix timestamp
  • Predefined DateTime Constants

Improve This Page

User contributed notes.

To Top

PHPGurukul

Don't be Afraid of Source Code

How to Add days in a Date in PHP?

by Anuj Kumar

In this tutorial, we will learn How to add days to a Date in PHP. I will give you two examples to add days to a date.

Example 1: If you to add days to a specific date

Output: 2022-01-15

Example 2: If you to add days to a Current Date

Tags: How to Add days in a Date in PHP

' src=

Hi! I am Anuj Kumar, a professional web developer with 5+ years of experience in this sector. I found PHPGurukul in September 2015. My keen interest in technology and sharing knowledge with others became the main reason for starting PHPGurukul. My basic aim is to offer all web development tutorials like PHP, PDO, jQuery, PHP oops, MySQL, etc. Apart from the tutorials, we also offer you PHP Projects, and we have around 100+ PHP Projects for you.

  • Next story  Cricket Academy Management System Using PHP and MySQL
  • Previous story  How to get Factorial of a number using Recursive Function

Recommended Tutorials for you

You may also like....

email validation PHP

How to validate Email Id in PHP

add day php date

Conditional Statement

CRUD operation using PHP and MySQLi

CRUD operation using PHP and MySQLi

Latest tutorials.

Employee Record System Using Python Django and MySQL

Get the Best PHP Projects at PHPGurukul

Complaint Management System Using Python Django and MySQL

Online Birth and Death Certificate System using PHP and MySQL

SQL Aliases

SQL BETWEEN Operator

SQL IN Operator

SQL LIKE Operator

Student Record System Using Python Django and MySQL

Online Cloth Rental System using PHP and MySQL

Tutorials Categories

  • .htaccess (5)
  • Android (19)
  • ASP.net Projects (1)
  • Codeigniter (19)
  • Differences (7)
  • General (6)
  • Javascript (11)
  • jQuery – Ajax Tutorials (5)
  • Laravel (1)
  • MySQL Snippet (3)
  • PHP Interview Questions and Answers (9)
  • PHP OOPs Concepts (22)
  • PHP Programs (6)
  • PHP Projects (153)
  • PHP Snippet (15)
  • Python Projects (10)
  • Python Tutorials (13)
  • Web Development (39)
  • Websevices (3)
  • Wordpress (18)

SQL Tutorials

  • SQL Select Distinct
  • SQL Order by
  • SQL AND Operator
  • SQL OR Operator
  • SQL OR vs AND
  • SQL NOT Operator
  • SQL INSERT INTO
  • SQL NULL Values
  • SQL Select TOP
  • SQL MIN() and MAX()
  • SQL Count()
  • SQL BETWEEN
  • SQL Aliases

Welcome to PHPGurukul .

How can I help you?

🟢 Online | Privacy policy

  • location_on Geo Tools
  • construction Web Tools
  • work_outline jobs
  • business business
  • data_object PHP
  • api CodeIgniter
  • webhook WordPress
  • code_off JavaScript
  • code HTML&CSS

CodexWorld

  • How To Guides

How to Add Days to Date in PHP

Are you want to add days to date? Here is the solution to add days to the current date or desired date using PHP.

Add days to date

The following source code will add 5 days to date. Source:

Add days to current date

The following source code will add 5 days to current date.

RELATED HOW TO GUIDES

How to Filter Array by Value in PHP

Thanks you so much!

thanks ,heavenly sent

Your code is the best

This is really great articles ! it helps me a lot .. keep it up great work . Thanks for posting nice articles ..

Thanks for sharing this code with us

Thanks for sharing this code with us. This is really help us a lot. I have used this code and it works fine. I have resolved my project issues finally. Thanks

thanks ,keep it up

Leave a reply

Web development, do you need a website for your business we are here to help you out we develop cost-effective web applications with complete solutions. build a new website or enhance your existing application at an affordable cost., trending tutorials.

  • Convert HTML to PDF using JavaScript
  • Upload and Store Image File in Database using PHP and MySQL
  • Login with Google Account using PHP
  • Multi-select Dropdown List with Checkbox using jQuery
  • Store and Retrieve Image from MySQL Database using PHP
  • Login with Facebook using PHP
  • Dynamic Dependent Select Box Dropdown using jQuery, Ajax and PHP
  • Add Remove Input Fields Dynamically using jQuery

TOPICS all topics

  • CodeIgniter
  • HTML&CSS
  • Web Development

add day php date

LATEST HOW TO GUIDES

  • How to Hide an Alert Message After a Specific Time (5 seconds) using JavaScript?
  • How to Add Full Screen Control to OpenStreetMap using JavaScript
  • How to Customize the OpenStreetMap Marker Icon using JavaScript
  • How to JOIN Multiple Tables in DataTables Server-side Processing using PHP
  • How to get file content from URL in PHP

Connect with our Support Team

Do you want support for the script installation or customization? Submit your request for customization of our scripts, support for the existing web application, and new development service.

You can connect with the support team directly via email at [email protected] for any inquiry/help.

Ace your Coding Interview

  • DSA Problems
  • Binary Tree
  • Binary Search Tree
  • Dynamic Programming
  • Divide and Conquer
  • Linked List
  • Backtracking

Add one day to a date in PHP

This article demonstrates how to add one day to a date in PHP.

1. Using DateTime::modify() function

The DateTime::modify() function alters the timestamp of a DateTime object by adding or subtracting according to the specified date/time format. To advance a date to the next day, you can use the relative date format "+1 day" .

Download    Run Code

  If you prefer the procedural style functions, you can use the date_modify() function, which is an alias of DateTime::modify() .

  You can easily extend the solution to add any given number of days to a date. Consider the following example, which creates an extension method for this simple task:

2. Using DateTime::add() function

You can also modify a DateTime object with the DateTime::add() function, which adds the amount of days, months, years, hours, minutes, and seconds according to the specified DateInterval object. The DateInterval constructor expects a duration parameter for the interval specification. This format starts with P , which stands for period, and is followed by a duration period and a period designator. You can use the period designator D for adding or removing days, as specified by the duration period. Therefore, one day is P1D .

  You may also use the procedural-style function date_add() , which is an alias of the object-oriented style function DateTime::add() .

  You can even write your own utility method for adding any number of days to the given date.

3. Using DateTime constructor

You can even use the DateTime constructor to add one day to a given date. The DateTime constructor returns a new DateTime object initialized from the specified date/time string. The idea is to use the English textual datetime description of "+1 day" to advance the given date by one. It can be used as shown below:

  Additionally, if you just need to add one day to the current date, you can directly pass the relative date format "+1 day" to DateTime constructor, as shown below:

4. Using strtotime() function

This can be easily done using the strtotime() function, which converts the given date string into a Unix timestamp. You can use the English textual datetime description of "+1 day" to advance the given date by one.

  Here’s a generic version of the above code that creates a utility method to add any number of days to the given date.

  Finally, if you just want to find tomorrow’s date, you can simply pass "+1 day" to the strtotime() function.

That’s all there is to adding one day to a date in PHP.

Convert a date from one format to another format in PHP
Convert date to timestamp in PHP
Get current date and time in PHP

Rate this post

Average rating 5 /5. Vote count: 2

No votes so far! Be the first to rate this post.

We are sorry that this post was not useful for you!

Tell us how we can improve this post?

Thanks for reading.

To share your code in the comments, please use our online compiler that supports C, C++, Java, Python, JavaScript, C#, PHP, and many more popular programming languages.

Like us? Refer us to your friends and support our growth. Happy coding :)

add day php date

Software Engineer | Content Writer | 12+ years experience

guest

StackHowTo

  • How to add days to a date in PHP

I n this tutorial, we are going to see how to add days to a date in PHP. Adding days to a Date can be done in different ways. It is very easy to do using built-in functions like strtotime() , date() in PHP.  

The following source code will add 5 days to a given date.

How to add days to the current date in PHP

The following source code will add 5 days to the current date.

mcq

  • Factorial Program in PHP Using Recursive Function
  • Factorial in PHP Using For Loop
  • How to Generate Random String in PHP
  • Warning: Cannot modify header information – headers already sent
  • How to send mail from localhost in PHP using WAMP server
  • How to send mail from localhost in PHP using XAMPP
  • How to Send an Email in PHP
  • How to Validate an Email Address in PHP
  • How to Check Format of Date in PHP
  • How to check if a URL is valid in PHP
  • How to Check Website Availability with PHP
  • How to Generate Random Numbers in PHP
  • How to Calculate Age from Date of Birth in PHP
  • How to Extract Content Between HTML Tags in PHP
  • How to check if file exists on remote server PHP
  • How to get the client IP address in PHP
  • How to Get IP Address of Server in PHP
  • How to declare a global variable in PHP
  • How to refresh a page with PHP
  • How to get first day of week in PHP
  • How to Change Max Size of File Upload in PHP
  • How to compare two dates in PHP
  • How to open a PDF file in browser with PHP
  • How to Download file from URL using PHP
  • How to remove an array element based on key in PHP
  • How to get random value from an array in PHP
  • How to calculate sum of an array in PHP
  • How to remove null or empty values from an array in PHP
  • How to Populate Dropdown List using Array in PHP
  • How to get all the keys of an associative array in PHP
  • How to get a value from an array in PHP
  • How to remove a specific element from an array in PHP
  • How to sort an associative array by value in PHP
  • How to sort an associative array by key in PHP
  • How to Check If a String Contains a Specific Word in PHP
  • How to get the current date and time in PHP
  • How to redirect to another page in PHP
  • How to remove all spaces from a string in PHP
  • Convert a date DD-MM-YYYY to YYYY-MM-DD in PHP
  • Convert a date YYYY-MM-DD to DD-MM-YYYY in PHP
  • How to get the current year in PHP
  • How to convert a string to an integer in PHP
  • How to get the first element of an array in PHP
  • How to convert date to timestamp in PHP
  • PHP: Compare two arrays and get the difference
  • How to remove duplicates from an array in PHP
  • How to sort an array in alphabetical order in PHP
  • How to merge multiple arrays into one array in PHP
  • How to add an element to the end of an array in PHP

How to add an element to the beginning of an array in PHP

  • How to remove the last element from an array in PHP
  • How to remove the first element from an array in PHP
  • How to replace part of a string in PHP
  • How to count repeated words in a string in PHP
  • PHP – Count Array Elements
  • How to Reverse an Array in PHP

How to check if a value exists in an array in PHP

  • How to check if a key exists in an array in PHP
  • How to reverse a string in PHP
  • How to check if a variable is null in PHP
  • How to check if a variable is empty in PHP
  • How to check if a variable is undefined in PHP
  • Convert HTML entities back to characters – PHP
  • How to find the length of a string in PHP
  • How to capitalize the first letter of a string in PHP
  • PHP – Uppercase the first letter of each word in a string
  • How to convert a string to lowercase in PHP
  • How to compare two strings in PHP
  • How to get the URL of the current page in PHP
  • How to convert a string into an array in PHP
  • How to extract a substring from a string in PHP
  • How to count number of words in a string in PHP
  • How to remove special characters from a string in PHP
  • How to replace a word in a string in PHP
  • How to Concatenate Two Strings in PHP
  • How to count the number of characters in a string in PHP
  • PHP – Remove spaces at the beginning and end of a string
  • How to filter an array by value in PHP
  • PHP – Get Domain Name from URL
  • How to create a log file in PHP
  • PHP – Get file extension
  • How to save an image from a URL in PHP
  • How to Edit PHP ini File in Ubuntu Terminal
  • How to increase the execution time of a PHP script
  • How to enable cURL in PHP WAMP, XAMPP, and Ubuntu
  • Convert Array to JSON in PHP
  • PHP – Read JSON file
  • How to display HTML tags as plain text using PHP
  • PHP – Create JSON file
  • How to convert result of MySQL query in JSON format
  • PHP – Read CSV File into an Array
  • How to convert an object to associative array in PHP
  • How to extract or unzip a folder on FTP server in PHP
  • How to Import CSV File in MySQL PHP
  • Get Data From a Database Without Refreshing the Browser Using Ajax
  • How to connect to Oracle database with PHP
  • Connect to a PostgreSQL database with PHP PDO
  • PHP – Convert Multidimensional Array to XML file
  • What is PHP and how can I learn it?
  • Hello World in PHP
  • Comments in PHP
  • How to Define a Variable in PHP
  • PHP global variable with Example
  • PHP Variable Scope
  • PHP – Static Variables
  • Type casting in PHP
  • PHP Type Juggling
  • Variable variables in PHP
  • How to echo an array in PHP?
  • How to Convert Decimal to Binary in PHP?
  • How to Convert Binary to Decimal in PHP?
  • How to assign multiple variables at once in PHP
  • How to extract $_GET / $_POST parameters in PHP
  • How to use $_GET in PHP?
  • How to get a variable name as a string in PHP?
  • How to print all defined variables and values in PHP
  • PHP References: When to Use Them, and How They Work
  • List of Superglobal Variables in PHP
  • How to return a variable by name from a function in PHP
  • How to delete a variable in PHP
  • What is the difference between == and === in PHP
  • How to check if a variable is NULL in PHP?

How to check if an object is an instance of a specific class in PHP?

  • How to check if a variable is a Boolean in PHP?
  • How to check if a variable is a String in PHP?
  • How to check if a variable is an Integer in PHP?
  • How to check if a variable is a float in PHP?
  • How to check if a variable is an array in PHP?
  • How to check if a variable is undefined in PHP?
  • How do you determine the data type of a variable in PHP?
  • Difference between Include and Require in PHP
  • How to combine HTML and PHP?
  • How to add a new line within echo in PHP?
  • How to display PHP variable values with echo, print_r, and var_dump
  • The 6 best PHP frameworks in 2021
  • PHP MCQ – Multiple Choice Questions and Answers – Basics – Part 1
  • PHP MCQ – Multiple Choice Questions and Answers – Basics – Part 2
  • PHP MCQ – Multiple Choice Questions and Answers – Basics – Part 3
  • PHP Questions and Answers – Functions – Part 1
  • PHP Questions and Answers – Functions – Part 2
  • PHP Questions and Answers – Arrays – Part 1
  • PHP Questions and Answers – Arrays – Part 2
  • PHP Questions and Answers – Arrays – Part 3
  • PHP Questions and Answers – Arrays – Part 4
  • PHP Questions and Answers – Object-Oriented OOP – Part 1
  • PHP Questions and Answers – Object-Oriented OOP – Part 2
  • PHP Questions and Answers – Object-Oriented OOP – Part 3
  • PHP Questions and Answers – String – Part 1
  • PHP Questions and Answers – String – Part 2
  • PHP Questions and Answers – Regular Expressions
  • PHP Questions and Answers – Exception Handling

You May Also Like

How to add an element to the beginning of an array in PHP

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Save my name, email, and website in this browser for the next time I comment.

Home

Add Days To Date Using PHP

add day php date

Creating Our Form

  • < form action = "index.php" method = "GET" >
  • < span style = "display: inline-block; width: 150px;" > Date < / span >< input type = "text" name = "date" required = "required" value = "<?php echo date(" m / d / Y ") ?> " /> < br >
  • < span style = "display: inline-block; width: 150px;" > Number of days < / span >< input type = "text" name = "numberofdays" value = "<?php echo $nd ?> " autocomplete="off" /> < br >
  • < span style = "display: inline-block; width: 150px;" > Result < / span >< input type = "text" name = "result" value = "<?php echo $result ?> " /> < br >
  • < span style = "display: inline-block; width: 150px;" > &nbsp; < / span >< input type = "submit" value = "Calculate" / >
  • < / form >

Creating Our Script That add Days to Date

  • if ( isset ( $_GET [ "date" ] ) ) { $date = $_GET [ "date" ] ; } else { $date = date ( "m/d/Y" ) ; } ;
  • if ( isset ( $_GET [ "numberofdays" ] ) ) { $nd = $_GET [ "numberofdays" ] ; } else { $nd = 0 ; } ;
  • $result = date ( 'm/d/Y' , strtotime ( $date . ' + ' . $nd . ' days' ) ) ;
  • add days to date using php
  • add days to date using phph strtotime function

Broken Code

Can u please make me codes.

  • Add new comment
  • PHP Tutorial
  • PHP Exercises
  • PHP Calendar
  • PHP Filesystem
  • PHP Programs
  • PHP Array Programs
  • PHP String Programs
  • PHP Interview Questions
  • PHP IntlChar
  • PHP Image Processing
  • PHP Formatter
  • Web Technology
  • How to add days to $Date in PHP?
  • How to calculate the difference between two dates in PHP ?
  • How to calculate number of days between two dates in R ?
  • How to calculate total time of an array in PHP ?
  • How to Use GNU bc (Basic Calculator) in Linux
  • How to Subtract Days from Date in PHP?
  • Calculate the Distance Between Two Points in PHP
  • How to calculate the number of days between two dates in JavaScript ?
  • How to Add Days to Date in JavaScript?
  • How to Calculate the Number of Days Between two Dates in TypeScript ?
  • How to get the current Date and Time in PHP ?
  • PHP Program to Calculate pow(x, n)
  • How to get current year in PHP ?
  • Comparing two dates in PHP
  • How to Calculate Age Without DATEDIF Function
  • How to use the Date and Time in PHP ?
  • PHP | cal_days_in_month()
  • How to add Days to a Date in Python?
  • How long is a Business Day?

How to Calculate Business Days in PHP?

We have given two dates, our task is to write a PHP program to get total business days, i.e. weekdays between the two dates.

Below are the approaches to calculate business days in PHP :

Table of Content

Using DateTime and DateInterval

  • Using strtotime and date functions

In this approach, we are using the DateTime class in PHP to handle date calculations. By iterating through each day between the start and end dates and checking if it falls on a weekday (Monday to Friday), we count the number of business days. The DateInterval class helps increment the date by one day in each iteration, ensuring accurate business day calculations.

Example: The below example uses DateTime and DateInterval to calculate business days in PHP.

Using strtotime() and date() functions

In this approach, we are using PHP’s strtotime and date functions to calculate business days. By converting the start and end dates into Unix timestamps, we iterate through each day, checking if it’s a weekday (Monday to Friday) using the date function. The strtotime(‘+1 day’, $currentDate) increments the date by one day in each iteration, allowing us to count the number of business days properly.

Example: The below example uses strtotime and date functions to calculate business days in PHP.

Please Login to comment...

Similar reads.

  • Web Technologies

Improve your Coding Skills with Practice

 alt=

What kind of Experience do you want to share?

She invented Mother’s Day — then waged a lifelong campaign against it

Anna Jarvis founded Mother’s Day, then fought for decades against its commercialization, draining what wealth she had. She died alone and penniless.

add day php date

While dining at a Philadelphia tearoom owned by her friend John Wanamaker, Anna Jarvis ordered a salad — then dumped it on the floor.

Jarvis hated that the dish was called “Mother’s Day Salad,” named after a celebration of mothers that she had pioneered years earlier.

The strong-willed woman saw it not as an honor but an affront to a tradition she held so dear. To her, it was a cheap marketing gimmick to profit off an idea that she considered to be hers, and hers alone.

The incident was recounted in a newspaper article published sometime in the early 1900s, years after Jarvis organized the first Mother’s Day service in the country, said Katharine Antolini, a historian who has studied Jarvis and how Mother’s Day became a national holiday.

Jarvis spent decades fighting an uphill battle to keep Mother’s Day from becoming the commercialized holiday that it is today. To her, it was simply a day to honor mothers, and she started it to commemorate her own. So when people co-opted her idea for other purposes, Jarvis was incensed.

She started fights, threatened lawsuits, wrote letters to politicians, issued bitter news releases, organized protests, fought with Eleanor Roosevelt, and demanded audiences with presidents, among other actions.

She even claimed legal copyright to the holiday, Antolini said. Her letters were signed “Anna Jarvis, Founder of Mother’s Day.”

“It became a part of her identity,” the historian said. “It was completely tied up in her ego.”

The fight that consumed Jarvis was waged in vain, and her campaign drained the modest fortune she’d inherited from her family. She died in a sanitarium in 1948 at age 84 — alone, blind and penniless.

If she were alive today, Antolini said, Jarvis would have been thrilled that Mother’s Day remains popular.

“But she’d be upset that people don’t remember her,” the historian said.

She would probably be equally angered to know that the holiday is celebrated in part through Mother’s Day specials and sales, Hallmark cards and floral arrangements.

Antolini, chair of the history department at West Virginia Wesleyan College, said she began studying Jarvis and the history of Mother’s Day in the 1990s, when she visited the International Mother’s Day Shrine, in Grafton, W.Va. It’s a museum of the church where the first Mother’s Day service was held.

In the church’s kitchen area, Antolini said, she found several boxes of documents that belonged to Jarvis. She volunteered to archive them and spent months poring over the records.

She learned about the childless woman who dedicated her life to the obsessive pursuit of creating a holiday for mothers.

“The surface image of her is that she was this crazy spinster who dedicated her life to this movement and fought everybody who tried to take her day away from her,” Antolini said. “It was her life to create this holiday, to perpetuate it and have it spread nationally.”

Jarvis, born in Webster, W.Va., was inspired to create Mother’s Day by her mother, Ann Reeves Jarvis, a Sunday school teacher who helped start Mother’s Day Work Clubs to teach women how to care for their children.

After one lecture in 1876, Ann Reeves Jarvis prayed that somebody would create a day commemorating mothers for their service to humanity, Antolini said.

Twelve-year-old Anna Jarvis remembered that.

Her mother died in 1905, and Jarvis, then in her 40s, promised at her gravesite that she’d be the one to answer her prayer.

Over the next years, Jarvis embarked on a relentless letter-writing campaign to persuade the governor of every state to declare the second Sunday of May — the closest Sunday to her mother’s death anniversary — Mother’s Day.

She wrote to Mark Twain, President Theodore Roosevelt and any other powerful figure she could think of to help with her cause, Antolini said. She also sought the help of Wanamaker, the Philadelphia businessman and her friend.

The first Mother’s Day service was held one morning in 1908 at St. Andrew’s Methodist Episcopal Church in Grafton. She bought hundreds of carnations, her mother’s favorite flower, for the service. A bigger celebration was held that afternoon at Wanamaker’s auditorium in Pennsylvania, where Jarvis spoke.

From there, Mother’s Day took off so quickly that the next year, Sonora Smart Dodd — who was raised by her father after her mother died in childbirth — heard a Mother’s Day sermon in Spokane, Wash., and helped create Father’s Day. In 1910, West Virginia passed a law designating Mother’s Day a holiday, and other states followed.

But Jarvis was nowhere near done.

She continued writing letters and traveling, all on her own dime, to make Mother’s Day a national holiday. The amount of her correspondence grew so much that she had to buy a second house for storage.

On May 8, 1914, Congress passed a law declaring the second Sunday of May as Mother’s Day. The following day, President Woodrow Wilson issued a proclamation declaring the first national Mother’s Day as a time to honor mothers whose sons had died in war.

Mother’s Day became a national cause, but not the one Jarvis had in mind.

She spent the next years railing against flower shop owners, cardmakers and the candy industry for profiting off the holiday.

“They’re commercializing my Mother’s Day,” she complained in a letter to newspapers, according to a 1986 Washington Post story. “This is not what I intended.”

A news release she issued, according to a 1994 Post article, read: “WHAT WILL YOU DO to route charlatans, bandits, pirates, racketeers, kidnappers and other termites that would undermine with their greed one of the finest, noblest and truest movements and celebrations?”

She threatened to sue New York Gov. Al Smith over plans for a Mother’s Day meeting in 1923, according to a Post obituary published in 1948. In 1931, she fought with New York first lady Eleanor Roosevelt over a rival Mother’s Day committee.

At one point, she incorporated the Mother’s Day International Association. It’s unclear whether the corporation had other members, according to the obituary.

Even charities became the target of her disdain. During the Great Depression of the 1930s, charities held fundraising events on Mother’s Day to help mothers in need. Jarvis resented that.

“She didn’t want it to be a beggar’s day,” Antolini said. “She didn’t want the day to be turned into just another charity event. You don’t pity mothers; you honor them.”

In studying Jarvis, Antolini came to sympathize with the tenacious and fiercely independent woman who remained single and childless at a time when women were expected to do the opposite.

“You get behind the motivation for why she’s doing it. She doesn’t sound crazy. Her argument is sound,” Antolini said. “Many times, you’d feel she’s justified in being angered about these things.”

But she also felt that Jarvis had a narrow view of what motherhood is about. Hers was the perspective of a child, of a daughter who deeply loved her mother.

“Children have a very simplistic view of motherhood,” Antolini said. “Those women who then would become mothers, they have a completely different view of motherhood. It’s becoming politically active to save the lives of mothers of other children.”

By the early 1940s, Jarvis had become undernourished and was losing her eyesight. Friends and associates placed her in a sanitarium in West Chester, Pa. She died Nov. 24, 1948.

Mother’s Day has become one of the most profitable U.S. holidays, with annual spending steadily growing since 2006. This year, consumers are expected to spend a near-record $33.5 billion, according to the National Retail Federation .

We can imagine how Jarvis would feel about that.

A version of this story was originally published on May 14, 2017.

add day php date

Almanac Logo

Order Your Almanac Today!

2024 Planting Calendar: When to Plant Vegetables

Enter your zip code or postal code above..

The 2024 gardening calendar tells you the ideal times WHEN TO PLANT vegetables, fruit, and herbs in your area. The chart lists:

  • The SPRING planting dates
  • The FALL planting dates

While you don't have to plant the very first date available, you don't want to wait too long, or you won't get your crops matured and harvested before the first fall/winter frost. (Usually, the "Days to Harvest" are present on the seed packets, but you need to add in time for picking.)

Having more weeks to grow means that you can plant some crops more than once. For example, lettuce grows quickly and can be planted every week or two for a long time, especially as you change varieties for higher bolt resistance.

ADVERTISEMENT

Planting Calendar

United States of America

  • Connecticut
  • District of Columbia
  • Massachusetts
  • Mississippi
  • New Hampshire
  • North Carolina
  • North Dakota
  • Pennsylvania
  • Rhode Island
  • South Carolina
  • South Dakota
  • West Virginia
  • British Columbia
  • New Brunswick
  • Newfoundland
  • Nova Scotia
  • Saskatchewan
  • Yukon Territory

The Old Farmer's Store

Celebrate Minecraft’s 15th Anniversary: Save on Games, Enjoy Free Giveaways, and More

add day php date

15 Year Anniversary News

add day php date

Collectibles

Whether you create, explore, or survive (or dig straight down), there’s always a tale to tell from your journeys or building sessions in Minecraft.

Characters on a hill - Alex holding a pickaxe, Steveholding a torch & a Creeper holding a dirt block

15-Year Anniversary

Steve and Alex coming out of a cave with mobs all around them

Minecraft Collection

Minecraft Dungeons heroes fighting their way through mobs in a cave

Minecraft Dungeons

A panoramic scene showing friendly characters on the left, enemies on the right, and the hero character in the middle

Minecraft Legends

Character standing at a podium

Trails & Tales Update

Minecraft classic.

With just 32 blocks to build with, all the original bugs, and an (inter)face only a mother could love, Minecraft 2009 is even more glorious than we remember!

  • Play Minecraft Classic

add day php date

2024 PGA Championship Leaderboard: Live day 2 updates for golf leaders at Valhalla

LOUISVILLE, KENTUCKY - MAY 16: Xander Schauffele of the United States plays his shot from the eighth tee during the first round of the 2024 PGA Championship at Valhalla Golf Club on May 16, 2024 in Louisville, Kentucky. (Photo by Ross Kinnaird/Getty Images)

The action at the first round of the 2024 PGA Championship did not disappoint. All eyes were on Xander Schauffele after a steller performance that also cemented his name in the history books by equaling the record for the lowest round in a major championship with a remarkable 62 in the opening round.

Schauffele didn't just settle early in the top spot, he dominated it, finishing Thursday with a 9-under-62.

Now, golfers head into Round 2 hoping to compete well enough to make the cut, and one of those players is Tiger Woods . Woods has been candid about his physical challenges and will look to make up ground on Friday to stay in contention and continue for a potential fifth PGA Championship title throughout the weekend.

The second round start times are now underway after having been delayed from 7:15 a.m. ET to 8:35 a.m. ET after a man was struck and killed by a shuttle bus that brings fans to the golf course.

Follow live for all the Round 2 action at the 2024 PGA Championship.

2024 PGA Championship: Xander Schauffele dominates leaderboard with record-tying round

2024 PGA Championship Leaderboard

  • No. 1: Xander Schauffele (-12)
  • No. 2: Collin Morikawa (-11)
  • No. 3: Sahith Theegala (-10)
  • T-No. 4: Mark Hubbard (-9)
  • T-No. 4: Thomas Detry (-9)
  • T-No. 4: Scottie Scheffler (-9)
  • T-No. 4: Bryson DeChambeau (-9)
  • T-No. 8: Viktor Hovland (-8)
  • T-No. 8: Robert MacIntyre (-8)
  • T-No. 8: Austin Eckroat (-8)
  • T-No. 11: Brooks Koepka (-7)
  • T-No. 11: HIdeki Matsuyama (-7)
  • T-No. 11: Matt Wallace (-7)
  • T-No. 11: Harris English (-7)
  • T-No. 11: Tony Finau (-7)

Scottie Scheffler detained by police before start of Round 2 at Valhalla Golf Club

Friday witnessed a significant event as Scottie Scheffler's journey to the Valhalla Golf Club was abruptly interrupted by the Louisville Metro Police.

As reported by ESPN's Jeff Darlington, Scheffler was navigating around a crash scene when a police officer ordered him to halt. Despite the command, Scheffler persisted, driving a further 10 to 20 yards towards the entrance of the golf course.

The police officer than stopped Scheffler's car as he entered the golf course and the officer then pulled him out of the car and placed him in handcuffs.

Darlington also reported that he was standing at the entrance and witnessed the event. Scheffler asked him, "Can you help?"

"You need to get out of the way," Darlington said the officer told him. "There's nothing you can do. He's going to jail."

By 8:30 a.m. ET, Scheffler was released from police and was heading back into the golf course and began play at 10:08 a.m. ET.

"This morning, I was proceeding as directed by police officers," Scheffler said in a social media statement. "It was a very chaotic situation, understandably so considering the tragic accident that had occurred earlier, and there was a big misunderstanding of what I thought I was being asked to do. I never intended to disregard any of the instructions. I'm hopeful to put this to the side and focus on golf today.

"Of course, all of us involved in the tournament express our deepest sympathies to the family of the man who passed away in the earlier accident this morning. It truly puts everything in perspective."

More: Scottie Scheffler arrested before start of Round 2 of the PGA Championship

PGA Championship Field: Xander Schauffele ties record

Xander Schauffele was on a tear on Thursday, dropping a nine-under-par 62 on the field. Thursday’s score nets the golfer his second such card, which ties him for the lowest round in a major along with Rickie Fowler (2023 U.S. Open), Branden Grace (2017 Open Championship) and Schauffele’s previous 62 at the 2023 U.S. Open. 

Louisville, Kentucky, Friday weather forecast

The weather in Louisville on Friday is expected to see periods of rain with chances of showers at 70%. A high of 72 degrees Fahrenheit and a low of 63.

How to watch the 2024 PGA Championship 

ESPN and CBS will televise the 2024 PGA Championship. The tournament will also be available to stream across  ESPN+  and  Paramount+ .

Here is a day-to-day schedule for the four-day tournament according to the PGA Championship official  website :

2024 PGA Championship full coverage schedule:

Friday, May 17:

  • Streaming coverage begins at 7:00 a.m. ET - 1:00 p.m. ET on ESPN+
  • Broadcast coverage begins at 1:00 p.m. ET- 8:00 p.m. ET on ESPN

Saturday, May 18:

  • Streaming coverage begins at 8:00 a.m. ET - 10:00 a.m. ET on ESPN+
  • Broadcast coverage begins at 10:00 a.m. ET- 1:00 p.m. ET on ESPN
  • Broadcast coverage continues at 1:00 p.m. ET- 7:00 p.m. ET on CBS and stream on Paramount+

Sunday, May 19:

How to watch: Catch the 2024 PGA Championship with a ESPN+ subscription

We occasionally recommend interesting products and services. If you make a purchase by clicking one of the links, we may earn an affiliate fee. USA TODAY Network newsrooms operate independently, and this doesn’t influence our coverage.

Gannett may earn revenue from sports betting operators for audience referrals to betting services. Sports betting operators have no influence over nor are any such revenues in any way dependent on or linked to the newsrooms or news coverage. Terms apply, see operator site for Terms and Conditions. If you or someone you know has a gambling problem, help is available. Call the National Council on Problem Gambling 24/7 at 1-800-GAMBLER (NJ, OH), 1-800-522-4700 (CO), 1-800-BETS-OFF (IA), 1-800-9-WITH-IT (IN). Must be 21 or older to gamble. Sports betting and gambling are not legal in all locations. Be sure to comply with laws applicable where you reside.

IMAGES

  1. Add Day In Current Date Using PHP

    add day php date

  2. PHP Add Days, Month, Year to Date

    add day php date

  3. How To Add Days With the Date in PHP

    add day php date

  4. How To Add Days With the Date in PHP

    add day php date

  5. How to add 1 day to a date using PHP

    add day php date

  6. How to Add Days, Month, Year to Date in PHP?

    add day php date

VIDEO

  1. Stuff EA should add (Day 1)

  2. PVZ 2 Episode 5

  3. I mean if your shore

  4. Date in php

  5. Premiere Pro Loading Bar Animation Effect #premierepro

  6. SQL query to add day , month ,year in column value

COMMENTS

  1. PHP date_add() Function

    PHP date_add() Function PHP Date/Time Reference. Example. Add 40 days to the 15th of March, 2013: ... Definition and Usage. The date_add() function adds some days, months, years, hours, minutes, and seconds to a date. Syntax. date_add(object, interval) Parameter Values. Parameter Description; object: Required. Specifies a DateTime object ...

  2. php

    This should be. echo date('Y-m-d', strtotime("+30 days")); strtotime. expects to be given a string containing a US English date format and will try to parse that format into a Unix timestamp (the number of seconds since January 1 1970 00:00:00 UTC), relative to the timestamp given in now, or the current time if now is not supplied.

  3. php

    My code to add one day to a date returns a date before day adding: 2009-09-30 20:24:00 date after adding one day SHOULD be rolled over to the next month: 1970-01-01 17:33:29 <?php //add d...

  4. How to add days to $Date in PHP?

    Method 2: Using date_add() Function: The date_add() function is used to add days, months, years, hours, minutes and seconds. Syntax: date_add(object, interval); Parameters: This function accepts two parameters as mentioned above and described below: Object: It specifies the DateTime object returned by date_create() function. Interval: It specifies the DateInterval object.

  5. PHP: date_add

    date_add (PHP 5 >= 5.3.0, PHP 7, PHP 8) date_add — Alias of DateTime::add() Description. This function is an alias of: DateTime::add() Improve This Page. Learn How To Improve This Page • Submit a Pull Request • Report a Bug

  6. How to Add Days to Date in PHP

    The above example will accept a date string with proper format and return the new date using strtotime and +1 days.date() function gave the proper format. Note: To avoid obscurity, it's recommended to use ISO 8601 (YYYY-MM-DD) format. date_add() to Add Days to Date in PHP This approach is the easiest among the others to add days, months, years, hours, minutes and seconds.

  7. PHP

    The date_add() function takes an existing DateTime object and adds a specified number of days, months, years, hours, minutes or seconds.. Syntax date_add(date_object, time_frame_to_add) The date_object parameter is an existing DateTime object.. The time_frame_to_add parameter is a DateInterval object.. Example. The following example uses date_create() to create a new DateTime object.

  8. PHP: DateTime::add

    DateTime::add date_add (PHP 5 >= 5.3.0, PHP 7, PHP 8) DateTime::add-- date_add — Modifies a DateTime object, with added amount of days, months, years, hours, minutes and seconds

  9. PHP: date

    It is possible to use date () and mktime () together to find dates in the future or the past. Example #3 date () and mktime () example. This can be more reliable than simply adding or subtracting the number of seconds in a day or month to a timestamp because of daylight saving time. Some examples of date () formatting.

  10. PHP: Add days to a date.

    Using the DateTime class to add days to a date. Let's start off by looking at a few examples using the DateTime class. Adding 30 days to a date. In the following example, I will add 30 days to a given date: //Using PHP's DateTime object to add 30 days //to a given date.

  11. Add Days to a Date With PHP DateInterval

    PHP has a lot of methods and functions to help you manipulate dates in a variety of ways. In this quick tip, I will show you how to add days to a date in PHP using the DateInterval class. We will begin with an overview of DateInterval and then move on to actual addition.. The DateInterval Class. The DateInterval class is useful for storing a specific amount of time mentioned in terms of years ...

  12. How to Add days in a Date in PHP?

    In this tutorial, we will learn How to add days to a Date in PHP. I will give you two examples to add days to a date. Example 1: If you to add days to a specific date. Output: 2022-01-15. Example 2: If you to add days to a Current Date.

  13. How to Add Days to Date in PHP

    Are you want to add days to date? Here is the solution to add days to the current date or desired date using PHP. Add days to date. The following source code will add 5 days to date.

  14. Add one day to a date in PHP

    This article demonstrates how to add one day to a date in PHP. 1. Using DateTime::modify() function. The DateTime::modify () function alters the timestamp of a DateTime object by adding or subtracting according to the specified date/time format. To advance a date to the next day, you can use the relative date format "+1 day".

  15. How to add days to a date in PHP

    I n this tutorial, we are going to see how to add days to a date in PHP. Adding days to a Date can be done in different ways. It is very easy to do using built-in functions like strtotime(), date() in PHP.. How to add days to a date in PHP. The following source code will add 5 days to a given date.

  16. Add Days To Date Using PHP

    I uses PHP strtotime to add days to the current date. This tutorial is useful for thus creating a system that needs a reservation using a range of date. Follow the steps bellow to learn this tutorial. Creating Our Form Tis code will display our form with the current date and a textbox that allow you to input the number of days you want to add ...

  17. How to Calculate Business Days in PHP?

    Using strtotime() and date() functions. In this approach, we are using PHP's strtotime and date functions to calculate business days. By converting the start and end dates into Unix timestamps, we iterate through each day, checking if it's a weekday (Monday to Friday) using the date function.

  18. She invented Mother's Day—then waged a lifelong campaign against it

    By Kristine Phillips. May 11, 2024 at 7:00 a.m. EDT. Anna Jarvis, circa 1909. (Library of Congress) 7 min. While dining at a Philadelphia tearoom owned by her friend John Wanamaker, Anna Jarvis ...

  19. 2024 Planting Calendar by Zip Code

    Enter your zip code or postal code above. The 2024 gardening calendar tells you the ideal times WHEN TO PLANT vegetables, fruit, and herbs in your area. The chart lists: While you don't have to plant the very first date available, you don't want to wait too long, or you won't get your crops matured and harvested before the first fall/winter frost.

  20. Will banks, post offices, UPS and FedEx be open on Memorial Day 2024?

    Add Topic. Will banks, post offices, UPS and FedEx be open on Memorial Day 2024? ... Originally called "Decoration Day," Memorial Day dates back to the 1860s and commemorates those who have died ...

  21. Miss Teen USA steps down just days after Miss USA's resignation

    CNN —. Miss Teen USA resigned Wednesday, sending further shock waves through the pageant community just days after Miss USA said she would relinquish her crown. In an Instagram post Wednesday ...

  22. When is first Biden-Trump debate? Date, time, TV channel, how to watch

    USA TODAY. 0:08. 0:47. President Joe Biden and former President Donald Trump agreed Wednesday to debate each other twice, once in June and again in September. Biden began the day challenging Trump ...

  23. function

    Is there any php function available where I can add days to a date to make up another date? For example, I have a date in the following format: 27-December-2011. If I add 7 to the above, it should give: 03-January-2012. Many thanks

  24. 'Blue Bloods' Season 14 part one finale: Date, time, where to watch

    The finale episode for part one of Season 14 of "Blue Bloods" will premiere Friday, May 17 at 10 p.m. ET/PT on CBS. The part one finale episode is titled "The Heart of a Saturday Night."

  25. Celebrate Minecraft's 15th Anniversary with Sales & Giveaways

    With just 32 blocks to build with, all the original bugs, and an (inter)face only a mother could love, Minecraft 2009 is even more glorious than we remember! Play Minecraft Classic. Celebrate 15 years of Minecraft! Shop the Minecraft anniversary sale to take 50% off all games until June 15th and enjoy 15 days of free giveaways and collectible ...

  26. Biden issues a challenge to Trump as he withdraws from ...

    Politics of the Day 19 videos. Video Ad Feedback. Biden issues a challenge to Trump as he withdraws from traditional debate dates 02:04 Now playing - Source: CNN. Video Ad Feedback ...

  27. PGA Championship 2024 Leaderboard: Live Day 2 updates, golf leaders

    The second round start times are now underway after having been delayed from 7:15 a.m. ET to 8:35 a.m. ET after a man was struck and killed by a shuttle bus that brings fans to the golf course.

  28. php

    PHP - add 1 day to date format mm-dd-yyyy. 0. Adding days to date in php. 0. Add days to date variable. 0. Add days to a date time format. 2. Add a one day to datetime field in mysql table. 0. How to add on to formatted date in PHP. Hot Network Questions How to protect a country with no army, no police, no guards, no military authority?