Ucase (string) converts a string to uppercase.
Val (string) converts a numeric string to a numeric State. If the string contains non-numeric content, it is removed and merged into a number.
In the weekday (date) parameter, the date is the day of the
Title
Several common date functionsChenzengxi (original)
Keywords
Date
/* -- Calculate the number of days between two characters (YYYY-MM-DD --*/Function date_compare
From_unixtime () is the time function in MySQL
Date is the parameter that needs to be processed (the parameter is a UNIX timestamp), can be a field name, or it can be a Unix timestamp string
The following '%y%m%d ' is primarily the formatting of the
To create a date object, you can use the following method:Copy codeThe Code is as follows:Var now = new Date () Of course, the function does not pass any parameters, indicating that the object now automatically obtains the current time.If you want
Var s = + newDate ();The explanation is as follows: = + does not exist;+ New Date () is a thing;+ Equivalent to. valueOf ();See the reply to add. getTime (), which also gets the number of milliseconds.Copy codeThe Code is as follows:// Returns the
C # All styles of date functions1. datetime numeric typeSystem. datetime currenttime = new system. datetime ();1.1 take the current year, month, day, hour, minute, secondCurrenttime = system. datetime. now;1.2 get current yearInt year = currenttime.
Time () functionThe time () function returns the Unix timestamp of the current time. Returns the number of seconds from the Unix epoch (January 1, January 1, 1970 00:00:00 GMT) to the current time.Since PHP 5.1, the timestamp at the TIME when the
[Email protected][Email protected] = getdate ()[Email protected][Email protected] = 3-- 1. Specify the first or last day of the year-- A. The first day of the yearSelectconvert (char (5), @ DT, 120) + '1-1'-- B. The last day of the yearSelectconvert
The common time format mask is as follows:Mask element meaningYYYY four-digit year (for example, 2005) yearYY two-digit year (for example, 05)Q quarter (1-4)MM month (01-12) monthThe number of weeks in WW (1-53), in which the first week is the first
Single-record functions in SQL1. ASCIIReturns the decimal number corresponding to the specified character;SQL> select ascii ('A') A, ascii ('A') A, ascii ('0') zero, ascii ('') space from dual;A ZERO SPACE------------------------------------65 97 48
PHP 5.1.1 defines the following constants to provide a standard date expression method that can be used in date format functions (for example, Date ()).
Date_atom (String)
atomic clock format (e.g.: 2005-08-15t15:52:01+00:00)
Date_cookie (String)
When I select the month list item, I get the year value and the month value to calculate the date value of the month 1th and the last day of the month.
The correct code is as follows:
Copy Code code as follows:
I'll start
Oracle Date Time Function encyclopedia
To_date format (in time: 2007-11-02 13:45:25 for example)
Year:
YY two digits two-digit year display value: 07
YYY three digits three-digit year display value: 007
YYYY four digits four-digit year display
Get the first day of the Week (Monday)
function Getfirstdateofweek (thedate) {
var Firstdateofweek;
Thedate.setdate (thedate.getdate () + 1-thedate.getday ());
Firstdateofweek = thedate;
return firstdateofweek;
}
Get the last
1. String date (string Format,inieger timestamp)
The function returns a string representing the time, which is controlled by the string format.
Such as:
Print (Date ("Y year M month D Day");//output current, Month day.
Print (Date ("Y year M month D
single-record functions in SQL
1.ASCII
Returns the decimal number corresponding to the specified character;
Sql> Select ASCII (' a ') a,ascii (' A ') a,ascii (' 0 ') zero,ascii (') space from dual;
A A ZERO space
--------- --------- --------- ------
function | date ' Date function Package Datapackage
%>
'**********************
' Purpose: Convert date to standard date string
' Input: Date
' Output: Date string, such as: 2002-12-22
'**********************
Function Getdatestr (ddate)
Dim strtmp
IntroducedPHP is a very amazing language. It's strong enough (the core language of the biggest blog (WordPress)), it's wide enough (running on Facebook, the biggest social networking site), and it's simple enough (as a beginner's preferred starter
Keywords: Oracle numeric function-type date conversion To_char automatic type conversion Date type numeric converter other function numeric functionABS: Find the absolute value function, such as: ABS (−5) 5SQRT: square root function, such as: sqrt (2
All functions in PHP are in the Unix era, starting January 1, 1970. The date is the number of seconds to start at this time. When a function call is counted as a number of seconds from this time, it is treated as a (timestamp) timestamp.
local time
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.