70 references to DateTime
mscorlib (31)
system\datetime.cs (1)
1216
DateTime dt = new
DateTime
(year, month, day);
system\globalization\CalendricalCalculationsHelper.cs (4)
27
static long StartOf1810 = GetNumberOfDays(new
DateTime
(1810, 1, 1));
28
static long StartOf1900Century = GetNumberOfDays(new
DateTime
(1900, 1, 1));
150
long july1stOfYear = GetNumberOfDays(new
DateTime
(gregorianYear, 7, 1));
158
long january1stOfYear = GetNumberOfDays(new
DateTime
(gregorianYear, 1, 1));
system\globalization\chineselunisolarcalendar.cs (1)
45
internal static DateTime minDate = new
DateTime
(MIN_GREGORIAN_YEAR, MIN_GREGORIAN_MONTH, MIN_GREGORIAN_DAY);
system\globalization\eastasianlunisolarcalendar.cs (1)
614
twoDigitYearMax = GetSystemTwoDigitYearSetting(BaseCalendarID, GetYear(new
DateTime
(DEFAULT_GREGORIAN_TWO_DIGIT_YEAR_MAX, 1, 1)));
system\globalization\gregoriancalendarhelper.cs (2)
41
this.ticks = new
DateTime
(startYear, startMonth, startDay).Ticks;
51
this.ticks = new
DateTime
(startYear, startMonth, startDay).Ticks;
system\globalization\hebrewcalendar.cs (3)
296
internal static readonly DateTime calendarMinValue = new
DateTime
(1583, 1, 1);
794
beginOfYearDate = new
DateTime
(1582, 9, 27);
1008
DateTime gregorianNewYear = new
DateTime
(gregorianYear, 1, 1);
system\globalization\hijricalendar.cs (1)
86
internal static readonly DateTime calendarMinValue = new
DateTime
(622, 7, 18);
system\globalization\japanesecalendar.cs (1)
48
internal static readonly DateTime calendarMinValue = new
DateTime
(1868, 9, 8);
system\globalization\japaneselunisolarcalendar.cs (1)
45
internal static DateTime minDate = new
DateTime
(MIN_GREGORIAN_YEAR, MIN_GREGORIAN_MONTH, MIN_GREGORIAN_DAY);
system\globalization\koreanlunisolarcalendar.cs (1)
46
internal static DateTime minDate = new
DateTime
(MIN_GREGORIAN_YEAR, MIN_GREGORIAN_MONTH, MIN_GREGORIAN_DAY);
system\globalization\Persiancalendar.cs (2)
33
internal static long PersianEpoch = new
DateTime
(622, 3, 22).Ticks / GregorianCalendar.TicksPerDay;
50
internal static DateTime minDate = new
DateTime
(622, 3, 22);
system\globalization\taiwancalendar.cs (1)
63
internal static readonly DateTime calendarMinValue = new
DateTime
(1912, 1, 1);
system\globalization\taiwanlunisolarcalendar.cs (1)
51
internal static DateTime minDate = new
DateTime
(MIN_GREGORIAN_YEAR, MIN_GREGORIAN_MONTH, MIN_GREGORIAN_DAY);
system\globalization\umalquracalendar.cs (2)
35
GregorianDate = new
DateTime
(GYear, GMonth, GDay);
258
internal static DateTime minDate = new
DateTime
(1900, 4, 30);
system\timezoneinfo.cs (9)
274
private static DateTime s_maxDateOnly = new
DateTime
(9999, 12, 31);
275
private static DateTime s_minDateOnly = new
DateTime
(1, 1, 2);
1563
AdjustmentRule previousYearRule = zone.GetAdjustmentRuleForTime(new
DateTime
(daylightTime.Start.Year - 1, 12, 31));
1577
AdjustmentRule nextYearRule = zone.GetAdjustmentRuleForTime(new
DateTime
(daylightTime.End.Year + 1, 1, 1));
1580
endTime = new
DateTime
(daylightTime.End.Year + 1, 12, 31) - utc - nextYearRule.BaseUtcOffsetDelta - nextYearRule.DaylightDelta;
2381
new
DateTime
(first, 12, 31), // December 31, <FirstYear>
2397
new
DateTime
(i, 1, 1), // January 01, <Year>
2398
new
DateTime
(i, 12, 31), // December 31, <Year>
2413
new
DateTime
(last, 1, 1), // January 01, <LastYear>
PresentationFramework (9)
src\Framework\System\Windows\Controls\Calendar.cs (7)
734
return new
DateTime
(DisplayDate.Year, 1, 1);
1386
DateTime? selectedDate = new
DateTime
(this.DisplayDateInternal.Year, this.DisplayDateInternal.Month, 1);
1407
DateTime selectedMonth = new
DateTime
(this.DisplayDate.Year, 12, 1);
1414
DateTime? selectedYear = new
DateTime
(DateTimeHelper.EndOfDecade(this.DisplayDate), 1, 1);
1450
DateTime? selectedDate = new
DateTime
(this.DisplayDateInternal.Year, this.DisplayDateInternal.Month, 1);
1457
DateTime selectedMonth = new
DateTime
(this.DisplayDate.Year, 1, 1);
1464
DateTime? selectedYear = new
DateTime
(DateTimeHelper.DecadeOfDate(this.DisplayDate), 1, 1);
src\Framework\System\Windows\Controls\Primitives\CalendarItem.cs (2)
1257
DateTime day = new
DateTime
(year, 1, 1);
1301
DateTime day = new
DateTime
(DisplayDate.Year, count + 1, 1);
System.Data (3)
fx\src\data\System\Data\ProviderBase\DbBuffer.cs (1)
589
return new
DateTime
(
fx\src\data\System\Data\SQLTypes\SQLDateTime.cs (2)
67
private static readonly DateTime SQLBaseDate = new
DateTime
(1900, 1, 1);
86
private static readonly DateTime MinDateTime = new
DateTime
(1753, 1, 1);
System.Messaging (6)
System\Messaging\Message.cs (2)
431
DateTime time = new
DateTime
(1970, 1, 1);
1621
DateTime time = new
DateTime
(1970, 1, 1);
System\Messaging\MessageQueue.cs (2)
479
DateTime time = new
DateTime
(1970, 1, 1);
792
DateTime time = new
DateTime
(1970, 1, 1);
System\Messaging\MessageQueueCriteria.cs (2)
38
private static DateTime minDate = new
DateTime
(1970, 1, 1);
39
private static DateTime maxDate = new
DateTime
(2038, 1, 19);
System.ServiceModel (1)
System\ServiceModel\Channels\NativeMsmqMessage.cs (1)
585
return new
DateTime
(1970, 1, 1).AddSeconds(seconds);
System.ServiceModel.Discovery (1)
System\ServiceModel\Discovery\DiscoveryMessageSequenceGenerator.cs (1)
12
static readonly DateTime DT1970 = new
DateTime
(1970, 1, 1);
System.Web (8)
Security\AnonymousIdentificationModule.cs (2)
96
cookie.Expires = new System.
DateTime
(1999, 10, 12);
176
cookie.Expires = new System.
DateTime
(1999, 10, 12);
Security\FormsAuthentication.cs (1)
416
cookie.Expires = new System.
DateTime
(1999, 10, 12);
Security\PassportIdentity.cs (1)
1010
cookie.Expires = new
DateTime
(1998, 1, 1);
Security\Roles.cs (1)
439
cookie.Expires = new System.
DateTime
(1999, 10, 12);
Security\SQLMembershipProvider.cs (1)
414
new
DateTime
( 1754, 1, 1 ) );
UI\WebControls\basecomparevalidator.cs (1)
376
return new
DateTime
(year, month, day);
UI\WebControls\Calendar.cs (1)
69
private static DateTime baseDate = new
DateTime
(2000, 1, 1);
System.Windows.Forms (3)
winforms\Managed\System\WinForms\DateTimePicker.cs (3)
80
public static readonly DateTime MinDateTime = new
DateTime
(1753, 1, 1);
87
public static readonly DateTime MaxDateTime = new
DateTime
(9998, 12, 31);
815
return new
DateTime
(1753, 1, 1);
System.Xml (8)
System\Xml\BinaryXml\SqlUtils.cs (1)
796
DateTime SQLBaseDate = new
DateTime
(1900, 1, 1);
System\Xml\Schema\XsdDateTime.cs (6)
382
result = new
DateTime
(DateTime.Now.Year, xdt.Month, xdt.Day);
387
TimeSpan addDiff = new
DateTime
(currentDateTime.Year, currentDateTime.Month, currentDateTime.Day) - new
DateTime
(xdt.Year, xdt.Month, xdt.Day);
439
dt = new
DateTime
( DateTime.Now.Year, xdt.Month, xdt.Day );
444
TimeSpan addDiff = new
DateTime
(currentDateTime.Year, currentDateTime.Month, currentDateTime.Day) - new
DateTime
(xdt.Year, xdt.Month, xdt.Day);
System\Xml\Serialization\XmlCodeExporter.cs (1)
259
ticks = (new
DateTime
(dt.Year, dt.Month, dt.Day)).Ticks;