Get tomorrows date from the webpage

soniccool

What is a php function that i can make call tomorrows date formatted like this? 02/04/2014

So if im looking at the website on 2/3/2014 it will show 02/04/2014

If i look at it on 2/15/2014 it will show 2/16/2014

Phil Cross

Just add using strtotime() / date() functions:

echo date('m/d/Y', strtotime('+1 day'));

Update

You can also do it using PHP's DateTime and DateInterval classes:

$date = new DateTime();
$date->add('P1D');
echo $date->format('m/d/Y');

この記事はインターネットから収集されたものであり、転載の際にはソースを示してください。

侵害の場合は、連絡してください[email protected]

編集
0

コメントを追加

0

関連記事

分類Dev

Get data from webpage into a table

分類Dev

Get background image from webpage using DOM XPATH

分類Dev

Scraping from webpage - python

分類Dev

Catch Post from webpage

分類Dev

How to get month name from date in Presto

分類Dev

How to get expiration date from a gpg key

分類Dev

SQLite: Get week number from date

分類Dev

Get day number from a specific date

分類Dev

C# - Get Date from Int Value

分類Dev

Get calculated date from moment object react

分類Dev

how to get current date from server

分類Dev

Get records happening on a particular date from mysql

分類Dev

Get Date from String Containing Timestamp

分類Dev

java programming get the date from a calendar

分類Dev

How to get a proper date from a text?

分類Dev

Get network usage from specific date on terminal

分類Dev

How to get maximum date value from a group of date columns

分類Dev

Get date, month and year value from Date string

分類Dev

Get whole week date starting from sunday to saturday from given date

分類Dev

JPA @OneToMany get latest record by date from Join

分類Dev

JPA @OneToMany get latest record by date from Join

分類Dev

JPA @OneToMany get latest record by date from Join

分類Dev

Get Last week date range from sunday to saturday moment js

分類Dev

Get the average Hour period from a selected Date range

分類Dev

Get a date value from an array and set it into a cell in Spreadsheet

分類Dev

How to get string and Date object from TIMESTAMP in Firebase Functions?

分類Dev

How to get the date from foreign Key column in Django

分類Dev

Get data using Date and Time from sql in C#

分類Dev

How to get Past 12months with year from current date

Related 関連記事

ホットタグ

アーカイブ