This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
!function () { | |
var isoDateFormat = /^(\d{4})(?:-(\d{2})(?:-(\d{2})(?:T(\d{2}):(\d{2})(?::(\d{2})(\.\d+)?)?(?:(Z(?=$)|(?:\+|\-)(?=\d{2}:\d{2}))(?:(\d{2}):(\d{2}))?)?)?)?)?$/; | |
Date.parseIsoDate = function (isoDate, convertToBrowserTimeZone) { | |
/// <summary> | |
/// Parses an ISO date. | |
/// </summary> | |
/// <param name="isoDate">The ISO date to parse.</param> | |
/// <param name="convertToBrowserTimeZone" optional="true">Whether or not to convert the date to the browser's time zone (true by default).</param> | |
/// <returns>A date.</returns> | |
/// <remarks> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Web.UI; | |
namespace Extensions | |
{ | |
/// <summary> | |
/// Provides <see cref="Page"/> extensions. | |
/// </summary> | |
public static class PageExtensions | |
{ | |
#region Methods |