JScript method - getYear method
Options will be for the Date object dateObj parameters.
This method has become obsolete, the reason for this approach is in order to maintain backward compatibility. GetFullYear method to use.
For the period 1900-1999, the return value is a year of double-digit integer, it represents the preservation of the Year and in 1900 the gap between. Of
In other years, the return value is an integer of 4. For example, in 1996 the return value is 96, and 1825 and in 2025 the return value for the corresponding
1825 and 2025.
jscript 1.0 version for the attention, getYear returned Date object is always the value of the year and in 1900 the gap between. For example, the return in 1899
Value is -1, while in 2000 the return value is 100.
The following example illustrates the use of getYear method.
function DateDemo () (
var d, s = "today's date is:";
d = new Date ();
s + = (d.getMonth () + 1) + "/";
s + = d.getDate () + "/";
s + = d.getYear ();
Asp Script encoding Articles
- Calculated on the date of issue of
- A URL string in the procedure with examples of links
- ASP in the general conditions of the project Query Module
- ASP paging function
- Interactive drop-down list box (EC net influx of truth Classmates message board used by the code)
- OICQ in the page's head to achieve the drop-down box to choose
- Automatically refresh the page, it does not allow users to press Enter to submit the data!
- Return the form filled out when the realization of the way instead of TAB
- Pass parameters through the address bar. Passing through the url parameters
- How in the html of the contents of the documents include a
- Picture gradually show (on entry)
- Picture gradually show (was on the point of entry)
- JScript methods - getUTCSeconds methods
- JScript methods - getVarDate methods
- JScript method - getYear method
Can't Find What You're Looking For?
Rating: Not yet rated