{infiniteZest}
// Articles. Tutorials. Utilities.
Home  |   Search  |   Login  
Categories Skip Navigation Links
New / All
AJAX
Apple
ASP.NET
.NET
Git
Google / Android
Python / IronPython
Miscellaneous
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 '_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