54 references to Today
Microsoft.AspNetCore.Mvc.FunctionalTests (5)
AntiforgeryMiddlewareTest.cs (5)
47
new("dueDate", DateTime.
Today
.AddDays(1).ToString(CultureInfo.CurrentCulture)),
88
new("dueDate", DateTime.
Today
.AddDays(1).ToString(CultureInfo.CurrentCulture)),
131
new("dueDate", DateTime.
Today
.AddDays(1).ToString(CultureInfo.CurrentCulture)),
163
new("dueDate", DateTime.
Today
.AddDays(1).ToString(CultureInfo.CurrentCulture)),
195
new("dueDate", DateTime.
Today
.AddDays(1).ToString(CultureInfo.CurrentCulture)),
Microsoft.AspNetCore.Routing.FunctionalTests (20)
MinimalFormTests.cs (20)
60
new KeyValuePair<string,string>("dueDate", DateTime.
Today
.AddDays(1).ToString(CultureInfo.InvariantCulture)),
70
Assert.Equal(DateTime.
Today
.AddDays(1), result.DueDate);
120
new KeyValuePair<string,string>("dueDate", DateTime.
Today
.AddDays(1).ToString(CultureInfo.InvariantCulture)),
130
Assert.Equal(DateTime.
Today
.AddDays(1), result.DueDate);
165
new KeyValuePair<string,string>("dueDate", DateTime.
Today
.AddDays(1).ToString(CultureInfo.InvariantCulture)),
204
new KeyValuePair<string,string>("dueDate", DateTime.
Today
.AddDays(1).ToString(CultureInfo.InvariantCulture)),
281
new KeyValuePair<string,string>("dueDate", DateTime.
Today
.AddDays(1).ToString(CultureInfo.InvariantCulture)),
291
Assert.Equal(DateTime.
Today
.AddDays(1), result.DueDate);
328
new KeyValuePair<string,string>("dueDate", DateTime.
Today
.AddDays(1).ToString(CultureInfo.InvariantCulture)),
338
Assert.Equal(DateTime.
Today
.AddDays(1), result.DueDate);
424
new KeyValuePair<string,string>("dueDate", DateTime.
Today
.AddDays(1).ToString(CultureInfo.InvariantCulture)),
481
new KeyValuePair<string,string>("dueDate", DateTime.
Today
.AddDays(1).ToString(CultureInfo.InvariantCulture)),
498
Assert.Equal(DateTime.
Today
.AddDays(1), result.DueDate);
542
new KeyValuePair<string,string>("[dueDate]", DateTime.
Today
.AddDays(1).ToString(CultureInfo.InvariantCulture)),
543
new KeyValuePair<string,string>("[dueDate1]", DateTime.
Today
.AddDays(1).ToString(CultureInfo.InvariantCulture)),
594
new KeyValuePair<string,string>("[dueDate]", DateTime.
Today
.AddDays(1).ToString(CultureInfo.InvariantCulture)),
595
new KeyValuePair<string,string>("[dueDate1]", DateTime.
Today
.AddDays(1).ToString(CultureInfo.InvariantCulture)),
646
new KeyValuePair<string,string>("[dueDate]", DateTime.
Today
.AddDays(1).ToString(CultureInfo.InvariantCulture)),
647
new KeyValuePair<string,string>("[dueDate1]", DateTime.
Today
.AddDays(1).ToString(CultureInfo.InvariantCulture)),
693
new KeyValuePair<string,string>("dueDate", DateTime.
Today
.AddDays(1).ToString(CultureInfo.InvariantCulture)),
Microsoft.Data.Analysis.Tests (5)
DataFrame.IOTests.cs (5)
1089
dateColumn[0] = DateTime.
Today
;
1090
dateColumn[1] = DateTime.
Today
.AddDays(1);
1118
dateColumn[0] = DateTime.
Today
;
1119
dateColumn[1] = DateTime.
Today
.AddDays(1);
1120
dateColumn[2] = DateTime.
Today
.AddDays(2);
Microsoft.Maui (1)
Platform\TimeExtensions.cs (1)
26
return DateTime.
Today
.Add(time).ToString(format, cultureInfo);
Microsoft.Maui.Controls (1)
DatePicker\DatePicker.cs (1)
20
defaultValueCreator: (bindable) => DateTime.
Today
);
Microsoft.ML.Samples (2)
Dynamic\Transforms\Conversion\ConvertTypeMultiColumn.cs (2)
24
Feature3 = DateTime.
Today
, Feature4 = 3.14},
27
Feature3 = DateTime.
Today
, Feature4 = 0.2046},
Microsoft.VisualBasic.Core (3)
Microsoft\VisualBasic\DateAndTime.vb (3)
22
Return DateTime.
Today
95
Return DateTime.
Today
.ToString("yyyy\-MM\-dd", GetInvariantCultureInfo())
97
Return DateTime.
Today
.ToString("MM\-dd\-yyyy", GetInvariantCultureInfo())
PresentationFramework (7)
System\Windows\Controls\Calendar.cs (2)
95
this.SetCurrentValueInternal(DisplayDateProperty, DateTime.
Today
);
488
int i = DateTimeHelper.CompareYearMonth(c.DisplayDateInternal, DateTime.
Today
);
System\Windows\Controls\CalendarBlackoutDatesCollection.cs (1)
40
this.Add(new CalendarDateRange(DateTime.MinValue, DateTime.
Today
.AddDays(-1)));
System\Windows\Controls\DatePicker.cs (1)
103
this.SetCurrentValueInternal(DisplayDateProperty, DateTime.
Today
);
System\Windows\Controls\Primitives\CalendarItem.cs (3)
134
return (Owner != null) ? Owner.DisplayDate : DateTime.
Today
;
299
selectedYear = DateTime.
Today
;
1092
if (DateTimeHelper.CompareDays(dateToAdd.Value, DateTime.
Today
) == 0)
PresentationUI (2)
MS\Internal\Documents\RMPublishingDialog.cs (2)
46
datePickerValidUntil.MinDate = DateTime.
Today
.AddDays(1);
47
datePickerValidUntil.Value = DateTime.
Today
.AddDays(1);
System.Windows.Forms (1)
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.MonthCalendarAccessibleObject.cs (1)
562
internal DateTime TodayDate => this.TryGetOwnerAs(out MonthCalendar? owner) ? owner.TodayDate : DateTime.
Today
;
System.Windows.Forms.Design (1)
System\ComponentModel\Design\DateTimeEditor.DateTimeUI.cs (1)
30
_monthCalendar.SetDate(dateTime.Equals(DateTime.MinValue) ? DateTime.
Today
: dateTime);
System.Windows.Forms.Tests (6)
System\Windows\Forms\AccessibleObjects\MonthCalendar.CalendarTodayLinkAccessibleObjectTests.cs (1)
82
DateTime.
Today
.ToShortDateString());
System\Windows\Forms\AccessibleObjects\MonthCalendar.MonthCalendarAccessibleObjectTests.cs (4)
110
Assert.Equal(DateTime.
Today
, accessibleObject.TodayDate);
127
yield return new object[] { DateTime.
Today
};
392
calendar.SetDate(DateTime.
Today
);
395
focusedCellAfterSetDate.DateRange.Start.Date.Should().Be(DateTime.
Today
);
System\Windows\Forms\MonthCalendarTests.cs (1)
4555
todayDateAfterReset.Should().Be(DateTime.
Today
);