PHP gets days of the week and dates of Monday and next Monday for this week
$today =date ("y-m-d");
echo $today;//You can get the date today. Output 2014-9-29
Define an array first.
$rows =array ("Day", "one", "two", "three", "four", "five", "
PHP gets this week's Monday specific date method, PHP gets this Monday
This example describes how PHP gets the exact date of the week Monday. Share to everyone for your reference. Specific as follows:
Private Function Mondaytime ($timestamp =0, $is
Php gets the day of a day, the day of the week, and the date corresponding to the day of the week and the day of the week. Php returns the day of a day, the day of a week, and the date $ todaydate (Y-m-d) corresponding to Monday and next Monday.
Local Test Cases:
# there can be no spaces on either side of the equal sign, before the error has been out here
yesterday= ' date-d last-day +%y-%m-%d '
echo $yesterday
curday= ' Date +%y-%m-%d '
echo $curday
echo "Now time: ' Date ' +%y%m%d%T '"
This article mainly introduces PHP to get this week Monday date of the method, involved in the PHP date-oriented operation skills, very practical value, interested friends can integrate the code fragment into their own date class to facilitate
The Ext.date is a single example that encapsulates a series of date manipulation functions, extending the functionality of JavaScript date, and lists some of the common features listed below. Basic functions:
The
Ext.Date.add (date,
1/**2* 3* Findsunday Method-mainly used. Find Sunday4* 5* 6* Created by Xiayh creation time 2014-7-21-5:52:587* 8* 9* history change record Ten* One * Modified Person Modification Time description A* -* - * @return the */ -PrivateDate
Date and Time functionsThis chapter discusses some functions that can be used to manipulate time values. See section 11.3, "Date and Time type" for valid formats for each time and date type with a range and a specified value.
The following example
Java get millisecond: system. currenttimemillis () Java get nanosecond: system. nanotime () (used to get very accurate time, recommended !) Java obtains the current date: gregoriancalendar date_1 = (gregoriancalendar) calendar. getinstance (); Java.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.