20 references to SpecifyKind
mscorlib (5)
system\datetimeoffset.cs (1)
191
return DateTime.
SpecifyKind
(m_dateTime, DateTimeKind.Utc);
system\globalization\datetimeformat.cs (1)
737
dateTime = DateTime.
SpecifyKind
(dateTime, DateTimeKind.Local);
system\globalization\datetimeparse.cs (3)
2594
result.parsedDate = DateTime.
SpecifyKind
(result.parsedDate, DateTimeKind.Local);
2600
result.parsedDate = DateTime.
SpecifyKind
(result.parsedDate, DateTimeKind.Utc);
2616
result.parsedDate = DateTime.
SpecifyKind
(result.parsedDate, DateTimeKind.Utc);
System (1)
net\System\Net\mail\SmtpDateTime.cs (1)
167
return DateTime.
SpecifyKind
(this.date, DateTimeKind.Unspecified);
System.Data (6)
fx\src\data\System\Data\Common\DateTimeStorage.cs (4)
152
retVal = DateTime.
SpecifyKind
(tmpValue, DateTimeKind.Utc);
163
retVal = DateTime.
SpecifyKind
(tmpValue, DateTimeKind.Local);
168
retVal = DateTime.
SpecifyKind
(tmpValue, DateTimeKind.Unspecified);
231
values[i] = DateTime.
SpecifyKind
(values[i].ToLocalTime(), DateTimeKind.Unspecified); //Strip the kind for UnspecifiedLocal.
fx\src\data\System\Data\Common\ObjectStorage.cs (2)
433
typedStore[storeIndex] = DateTime.
SpecifyKind
(dt.ToUniversalTime(), DateTimeKind.Local);
444
values[i] = (DateTime.
SpecifyKind
(dt, DateTimeKind.Utc)).ToLocalTime();
System.Data.Entity.Design (1)
System\Data\EntityModel\Emitters\PropertyEmitter.cs (1)
769
DateTime dateTime = DateTime.
SpecifyKind
(utc, DateTimeKind.Unspecified);
System.Data.Services.Design (1)
System\Data\EntityModel\Emitters\PropertyEmitter.cs (1)
703
DateTime dateTime = DateTime.
SpecifyKind
(utc, DateTimeKind.Unspecified);
System.Runtime.Serialization (1)
System\Runtime\Serialization\Json\JsonReaderDelegator.cs (1)
240
return DateTime.
SpecifyKind
(dateTime.ToLocalTime(), DateTimeKind.Unspecified);
System.Web (5)
Profile\SqlProfileProvider.cs (2)
527
dtLastActivity = DateTime.
SpecifyKind
(reader.GetDateTime(2), DateTimeKind.Utc);
528
dtLastUpdated = DateTime.
SpecifyKind
(reader.GetDateTime(3), DateTimeKind.Utc);
UI\WebParts\SqlPersonalizationProvider.cs (3)
121
DateTime.
SpecifyKind
(reader.GetDateTime(1), DateTimeKind.Utc);
245
DateTime lastUpdatedDate = DateTime.
SpecifyKind
(reader.GetDateTime(1), DateTimeKind.Utc);
248
DateTime lastActivityDate = DateTime.
SpecifyKind
(reader.GetDateTime(4), DateTimeKind.Utc);