// Articles. Tutorials. Utilities.
Home  |   Search  |   Login  
Categories Skip Navigation Links
New / All
Google / Android
Python / IronPython
SQL Server
AJAX Source Viewer
Slideshow of method source in a particular class. Choose a class from the Namespaces, Classes, or Methods menu item above.
Slideshow for Class 'Date'
Previous Method:

_appendPreOrPostMatch(preMatch, strBuilder)
Current Method:

_expandFormat(dtf, format)
Next Method:

_expandYear(dtf, year)
Method '_expandFormat(dtf, format)'
Method: _expandFormat(dtf, format)
Method Full Name:     Date$_expandFormat(dtf, format)
Class: Date
Namespace: Global (MicrosoftAjax.debug.js)
Source File: MicrosoftAjax.debug.js
1   Date._expandFormat = function Date$_expandFormat(dtf, format) {
2     if (!format) {
3       format = "F";
4     }
5     if (format.length === 1) {
6       switch (format) {
7         case "d":
8           return dtf.ShortDatePattern;
9         case "D":
10          return dtf.LongDatePattern;
11        case "t":
12          return dtf.ShortTimePattern;
13        case "T":
14          return dtf.LongTimePattern;
15        case "F":
16          return dtf.FullDateTimePattern;
17        case "M": case "m":
18          return dtf.MonthDayPattern;
19        case "s":
20          return dtf.SortableDateTimePattern;
21        case "Y": case "y":
22          return dtf.YearMonthPattern;
23        default:
24          throw Error.format(Sys.Res.formatInvalidString);
25        }
26      }
27      return format;
28    }
This is the JavaScript source for method _expandFormat(dtf, format) from ASP.NET AJAX Library. Full name for this method is Date$_expandFormat(dtf, format). 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