﻿var cd=Calendar.Date;cd.DayNames=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"];cd.AbbreviatedDayNames=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"];cd.OneCharDayNames=["S","M","T","W","T","F","S"];cd.MonthNames=["January","February","March","April","May","June","July","August","September","October","November","December",""];cd.AbbreviatedMonthNames=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec",""];cd.Strings={Hour:"hour",Hours:"hours",Minute:"minute",Minutes:"minutes",DecimalSeperator:"."};cd.Is24HourTimeFormat=false;cd.FirstDayOfWeek=0;cd.StartHourOfWorkDay=8;cd.StartMinuteOfWorkDay=0;cd.StartSecondOfWorkDay=0;cd.AMDesignator="am";cd.PMDesignator="pm";cd.DateSeparator="/";cd.TimeSeparator=":";cd.prototype.toFullDateTimeString=function(){var a=Calendar.Date,b=this.getHours()%12;return a.DayNames[this.getDay()]+", "+a.MonthNames[this.getMonth()]+" "+this.getDate()+", "+this.getYear()+" "+(a.Is24HourTimeFormat?this.getHours()+a.TimeSeparator+(this.getMinutes()<10?"0"+this.getMinutes():this.getMinutes()):(b==0?"12":b)+a.TimeSeparator+(this.getMinutes()<10?"0"+this.getMinutes():this.getMinutes())+(this.getHours()<12?a.AMDesignator:a.PMDesignator))};cd.prototype.toFullDateString=function(){var a=Calendar.Date;return a.DayNames[this.getDay()]+", "+a.MonthNames[this.getMonth()]+" "+this.getDate()+", "+this.getYear()};cd.prototype.toFullDateWithAbbreviatedMonthString=function(){var a=Calendar.Date;return a.DayNames[this.getDay()]+", "+a.AbbreviatedMonthNames[this.getMonth()]+" "+this.getDate()+", "+this.getYear()};cd.prototype.toFullDateTimeWithAbbreviatedMonthString=function(){var a=Calendar.Date,b=this.getHours()%12;return a.DayNames[this.getDay()]+", "+a.AbbreviatedMonthNames[this.getMonth()]+" "+this.getDate()+", "+this.getYear()+" "+(a.Is24HourTimeFormat?this.getHours()+a.TimeSeparator+(this.getMinutes()<10?"0"+this.getMinutes():this.getMinutes()):(b==0?"12":b)+a.TimeSeparator+(this.getMinutes()<10?"0"+this.getMinutes():this.getMinutes())+(this.getHours()<12?a.AMDesignator:a.PMDesignator))};cd.prototype.toLongDateString=function(){var a=Calendar.Date;return a.MonthNames[this.getMonth()]+" "+this.getDate()+", "+this.getYear()};cd.prototype.toLongTimeString=function(){var a=Calendar.Date,b=this.getHours()%12;return a.Is24HourTimeFormat?this.getHours()+a.TimeSeparator+(this.getMinutes()<10?"0"+this.getMinutes():this.getMinutes()):(b==0?"12":b)+a.TimeSeparator+(this.getMinutes()<10?"0"+this.getMinutes():this.getMinutes())+(this.getHours()<12?a.AMDesignator:a.PMDesignator)};cd.prototype.toMonthDayString=function(){var a=Calendar.Date;return a.MonthNames[this.getMonth()]+" "+this.getDate()};cd.ShortDatePattern="M/d/yyyy";cd.prototype.toShortDateString=function(){var a=Calendar.Date;return this.getMonth()+1+a.DateSeparator+this.getDate()+a.DateSeparator+this.getYear()};cd.ShortTimePattern="h:mmtt";cd.prototype.toShortTimeString=function(){var a=Calendar.Date,b=this.getHours()%12;return a.Is24HourTimeFormat?this.getHours()+a.TimeSeparator+(this.getMinutes()<10?"0"+this.getMinutes():this.getMinutes()):(b==0?"12":b)+a.TimeSeparator+(this.getMinutes()<10?"0"+this.getMinutes():this.getMinutes())+(this.getHours()<12?a.AMDesignator:a.PMDesignator)};cd.prototype.toYearMonthString=function(){var a=Calendar.Date;return a.MonthNames[this.getMonth()]+" "+this.getYear()};cd.prototype.toAbbreviatedDateString=function(){var a=Calendar.Date;return a.AbbreviatedMonthNames[this.getMonth()]+" "+this.getDate()+", "+this.getYear()};cd.prototype.toAbbreviatedMonthDayString=function(){var a=Calendar.Date;return a.AbbreviatedMonthNames[this.getMonth()]+" "+this.getDate()};cd.prototype.toAbbreviatedYearMonthString=function(){var a=Calendar.Date;return a.AbbreviatedMonthNames[this.getMonth()]+" "+this.getYear()};cd.prototype.toShortDateWithAbbreviatedDayPattern=function(){var a=Calendar.Date;return a.AbbreviatedDayNames[this.getDay()]+" "+(this.getMonth()+1)+a.DateSeparator+this.getDate()+a.DateSeparator+this.getYear()};cd.prototype.toShortMonthDayPattern=function(){var a=Calendar.Date;return this.getMonth()+1+a.DateSeparator+this.getDate()};cd.prototype.toDayMonthAndWeekdayString=function(){var a=Calendar.Date;return a.AbbreviatedDayNames[this.getDay()]+", "+a.AbbreviatedMonthNames[this.getMonth()]+" "+this.getDate()};cd.prototype.toAbbreviatedWeekdayDayString=function(){var a=Calendar.Date;return a.AbbreviatedDayNames[this.getDay()]+" "+this.getDate()};cd.prototype.toMonthString=function(){var a=Calendar.Date;return a.MonthNames[this.getMonth()]};cd.prototype.toDayString=function(){var a=Calendar.Date;return this.getDate()};cd.prototype.toHourString=function(){var a=Calendar.Date,b=this.getHours()%12;return a.Is24HourTimeFormat?this.getHours():(b==0?"12":b)+(this.getHours()<12?a.AMDesignator:a.PMDesignator)};cd.IsTimeStringBeginWithAMPM=false;cd.IsHourLeadingZero=false
