I am using an html form to get a user inputted date. The structure of the date inputted is: MM/DD/YYYY. I then need to increment the total days by 196 in PHP. Right now, the data is being posted to a php file called Calculate.php. I was looking into altering the data using date (m d Y); in php, but my friend said that probably wont work. Any ideas? Thank you for your time and have a great day! ^_^
Share
strtotime. This will convert your MM/DD/YYYY format in to a numeric value you can then work with.strtotimeagain to manipulate the date to add the days to it.strftimeto re-format it for display.e.g.
DEMO