// Articles. Tutorials. Utilities.
Home  |   Search  |   Login  
Categories Skip Navigation Links
New / All
Google / Android
Python / IronPython
SQL Server
AJAX Source Viewer
View the source code of a Method from ASP.NET AJAX Library. Choose a method from the menu items above (Namespaces, Classes, or Methods).
Method '_expandYear(dtf, year)'
Method: _expandYear(dtf, year)
Method Full Name:     Date$_expandYear(dtf, year)
Class: Date
Namespace: Global (MicrosoftAjax.debug.js)
Source File: MicrosoftAjax.debug.js
1   Date._expandYear = function Date$_expandYear(dtf, year) {
2     if (year < 100) {
3       var curr = new Date().getFullYear();
4       year += curr - (curr % 100);
5       if (year > dtf.Calendar.TwoDigitYearMax) {
6         return year - 100;
7       }
8     }
9     return year;
10  }
This is the JavaScript source for method _expandYear(dtf, year) from ASP.NET AJAX Library. Full name for this method is Date$_expandYear(dtf, year). It belongs to the class Date, which is in Global (MicrosoftAjax.debug.js) namespace. This source is in MicrosoftAjax.debug.js file.
Bookmark and Share This
About  Contact  Privacy Policy  Site Map