169 references to DateTimeStyles
mscorlib (94)
system\datetime.cs (10)
1294
return (DateTimeParse.Parse(s, DateTimeFormatInfo.CurrentInfo,
DateTimeStyles
.None));
1302
return (DateTimeParse.Parse(s, DateTimeFormatInfo.GetInstance(provider),
DateTimeStyles
.None));
1305
public static DateTime Parse(String s, IFormatProvider provider,
DateTimeStyles
styles) {
1315
return (DateTimeParse.ParseExact(s, format, DateTimeFormatInfo.GetInstance(provider),
DateTimeStyles
.None));
1322
public static DateTime ParseExact(String s, String format, IFormatProvider provider,
DateTimeStyles
style) {
1327
public static DateTime ParseExact(String s, String[] formats, IFormatProvider provider,
DateTimeStyles
style) {
1467
return DateTimeParse.TryParse(s, DateTimeFormatInfo.CurrentInfo,
DateTimeStyles
.None, out result);
1470
public static Boolean TryParse(String s, IFormatProvider provider,
DateTimeStyles
styles, out DateTime result) {
1475
public static Boolean TryParseExact(String s, String format, IFormatProvider provider,
DateTimeStyles
style, out DateTime result) {
1480
public static Boolean TryParseExact(String s, String[] formats, IFormatProvider provider,
DateTimeStyles
style, out DateTime result) {
system\datetimeoffset.cs (17)
596
DateTimeStyles
.None,
606
return Parse(input, formatProvider,
DateTimeStyles
.None);
609
public static DateTimeOffset Parse(String input, IFormatProvider formatProvider,
DateTimeStyles
styles) {
624
return ParseExact(input, format, formatProvider,
DateTimeStyles
.None);
631
public static DateTimeOffset ParseExact(String input, String format, IFormatProvider formatProvider,
DateTimeStyles
styles) {
642
public static DateTimeOffset ParseExact(String input, String[] formats, IFormatProvider formatProvider,
DateTimeStyles
styles) {
732
DateTimeStyles
.None,
739
public static Boolean TryParse(String input, IFormatProvider formatProvider,
DateTimeStyles
styles, out DateTimeOffset result) {
752
public static Boolean TryParseExact(String input, String format, IFormatProvider formatProvider,
DateTimeStyles
styles,
767
public static Boolean TryParseExact(String input, String[] formats, IFormatProvider formatProvider,
DateTimeStyles
styles,
810
private static
DateTimeStyles
ValidateStyles(
DateTimeStyles
style, String parameterName) {
814
if (((style & (
DateTimeStyles
.AssumeLocal)) != 0) && ((style & (
DateTimeStyles
.AssumeUniversal)) != 0)) {
817
if ((style &
DateTimeStyles
.NoCurrentDateDefault) != 0) {
823
style &= ~
DateTimeStyles
.RoundtripKind;
826
style &= ~
DateTimeStyles
.AssumeLocal;
system\globalization\datetimeformatinfo.cs (16)
2222
internal const
DateTimeStyles
InvalidDateTimeStyles = ~(
DateTimeStyles
.AllowLeadingWhite |
DateTimeStyles
.AllowTrailingWhite
2223
|
DateTimeStyles
.AllowInnerWhite |
DateTimeStyles
.NoCurrentDateDefault
2224
|
DateTimeStyles
.AdjustToUniversal |
DateTimeStyles
.AssumeLocal
2225
|
DateTimeStyles
.AssumeUniversal |
DateTimeStyles
.RoundtripKind);
2227
internal static void ValidateStyles(
DateTimeStyles
style, String parameterName) {
2231
if (((style & (
DateTimeStyles
.AssumeLocal)) != 0) && ((style & (
DateTimeStyles
.AssumeUniversal)) != 0)) {
2235
if (((style &
DateTimeStyles
.RoundtripKind) != 0)
2236
&& ((style & (
DateTimeStyles
.AssumeLocal |
DateTimeStyles
.AssumeUniversal |
DateTimeStyles
.AdjustToUniversal)) != 0)) {
system\globalization\datetimeparse.cs (42)
50
internal static DateTime ParseExact(String s, String format, DateTimeFormatInfo dtfi,
DateTimeStyles
style) {
61
internal static DateTime ParseExact(String s, String format, DateTimeFormatInfo dtfi,
DateTimeStyles
style, out TimeSpan offset) {
75
internal static bool TryParseExact(String s, String format, DateTimeFormatInfo dtfi,
DateTimeStyles
style, out DateTime result) {
86
internal static bool TryParseExact(String s, String format, DateTimeFormatInfo dtfi,
DateTimeStyles
style, out DateTime result, out TimeSpan offset) {
100
internal static bool TryParseExact(String s, String format, DateTimeFormatInfo dtfi,
DateTimeStyles
style, ref DateTimeResult result) {
125
DateTimeFormatInfo dtfi,
DateTimeStyles
style) {
138
DateTimeFormatInfo dtfi,
DateTimeStyles
style, out TimeSpan offset) {
153
DateTimeFormatInfo dtfi,
DateTimeStyles
style, out DateTime result, out TimeSpan offset) {
169
DateTimeFormatInfo dtfi,
DateTimeStyles
style, out DateTime result) {
181
DateTimeFormatInfo dtfi,
DateTimeStyles
style, ref DateTimeResult result) {
600
private static Boolean Lex(DS dps, ref __DTString str, ref DateTimeToken dtok, ref DateTimeRawInfo raw, ref DateTimeResult result, ref DateTimeFormatInfo dtfi,
DateTimeStyles
styles)
1485
private static void GetDefaultYear(ref DateTimeResult result, ref
DateTimeStyles
styles) {
1491
private static Boolean GetDayOfNN(ref DateTimeResult result, ref
DateTimeStyles
styles, ref DateTimeRawInfo raw, DateTimeFormatInfo dtfi) {
1578
private static Boolean GetDayOfMN(ref DateTimeResult result, ref
DateTimeStyles
styles, ref DateTimeRawInfo raw, DateTimeFormatInfo dtfi) {
1654
private static Boolean GetDayOfNM(ref DateTimeResult result, ref
DateTimeStyles
styles, ref DateTimeRawInfo raw, DateTimeFormatInfo dtfi)
2115
internal static Boolean ProcessHebrewTerminalState(DS dps, ref DateTimeResult result, ref
DateTimeStyles
styles, ref DateTimeRawInfo raw, DateTimeFormatInfo dtfi) {
2196
internal static Boolean ProcessTerminaltState(DS dps, ref DateTimeResult result, ref
DateTimeStyles
styles, ref DateTimeRawInfo raw, DateTimeFormatInfo dtfi)
2275
internal static DateTime Parse(String s, DateTimeFormatInfo dtfi,
DateTimeStyles
styles) {
2286
internal static DateTime Parse(String s, DateTimeFormatInfo dtfi,
DateTimeStyles
styles, out TimeSpan offset) {
2300
internal static bool TryParse(String s, DateTimeFormatInfo dtfi,
DateTimeStyles
styles, out DateTime result) {
2311
internal static bool TryParse(String s, DateTimeFormatInfo dtfi,
DateTimeStyles
styles, out DateTime result, out TimeSpan offset) {
2330
internal static bool TryParse(String s, DateTimeFormatInfo dtfi,
DateTimeStyles
styles, ref DateTimeResult result) {
2559
private static Boolean DetermineTimeZoneAdjustments(ref DateTimeResult result,
DateTimeStyles
styles, Boolean bTimeOnly) {
2588
if ((styles &
DateTimeStyles
.AssumeLocal) != 0) {
2589
if ((styles &
DateTimeStyles
.AdjustToUniversal) != 0) {
2598
else if ((styles &
DateTimeStyles
.AssumeUniversal) != 0) {
2599
if ((styles &
DateTimeStyles
.AdjustToUniversal) != 0) {
2615
if (((styles &
DateTimeStyles
.RoundtripKind) != 0) && ((result.flags & ParseFlags.TimeZoneUtc) != 0)) {
2620
if ((styles &
DateTimeStyles
.AdjustToUniversal) != 0) {
2627
private static Boolean DateTimeOffsetTimeZonePostProcessing(ref DateTimeResult result,
DateTimeStyles
styles) {
2632
if ((styles &
DateTimeStyles
.AssumeUniversal) != 0) {
2663
if ((styles &
DateTimeStyles
.AdjustToUniversal) != 0) {
2664
if (((result.flags & ParseFlags.TimeZoneUsed) == 0) && ((styles &
DateTimeStyles
.AssumeUniversal) == 0)) {
2754
private static bool ParseISO8601(ref DateTimeRawInfo raw, ref __DTString str,
DateTimeStyles
styles, ref DateTimeResult result) {
3344
private static DateTime GetDateTimeNow(ref DateTimeResult result, ref
DateTimeStyles
styles) {
3350
else if ((styles &
DateTimeStyles
.AssumeUniversal) != 0) {
3360
private static bool CheckDefaultDateTime(ref DateTimeResult result, ref Calendar cal,
DateTimeStyles
styles) {
3405
if ((styles &
DateTimeStyles
.NoCurrentDateDefault) != 0) {
4010
DateTimeStyles
styles,
4020
parseInfo.fAllowInnerWhite = ((styles &
DateTimeStyles
.AllowInnerWhite) != 0);
4021
parseInfo.fAllowTrailingWhite = ((styles &
DateTimeStyles
.AllowTrailingWhite) != 0);
4057
if ((styles &
DateTimeStyles
.AllowLeadingWhite) != 0) {
system\runtime\remoting\soapinteroptypes.cs (8)
211
dt = DateTime.ParseExact(time, formats, CultureInfo.InvariantCulture,
DateTimeStyles
.None);
465
SoapTime dt = new SoapTime(DateTime.ParseExact(time, formats, CultureInfo.InvariantCulture,
DateTimeStyles
.None));
550
return new SoapDate(DateTime.ParseExact(value, formats, CultureInfo.InvariantCulture,
DateTimeStyles
.None), sign);
634
return new SoapYearMonth(DateTime.ParseExact(value, formats, CultureInfo.InvariantCulture,
DateTimeStyles
.None), sign);
718
return new SoapYear(DateTime.ParseExact(value, formats, CultureInfo.InvariantCulture,
DateTimeStyles
.None), sign);
775
return new SoapMonthDay(DateTime.ParseExact(value, formats, CultureInfo.InvariantCulture,
DateTimeStyles
.None));
832
return new SoapDay(DateTime.ParseExact(value, formats, CultureInfo.InvariantCulture,
DateTimeStyles
.None));
889
return new SoapMonth(DateTime.ParseExact(value, formats, CultureInfo.InvariantCulture,
DateTimeStyles
.None));
system\timezoneinfo.cs (1)
3887
if (!DateTime.TryParseExact(token, format, DateTimeFormatInfo.InvariantInfo,
DateTimeStyles
.None, out time)) {
PresentationFramework (1)
src\Framework\System\Windows\Automation\Peers\CalendarAutomationPeer.cs (1)
534
if (DateTime.TryParse((value as string), format, System.Globalization.
DateTimeStyles
.None, out parsedDate))
System (2)
net\System\Net\cookie.cs (1)
1412
CultureInfo.InvariantCulture,
DateTimeStyles
.AllowWhiteSpaces, out expires)) {
net\System\Net\mail\SmtpDateTime.cs (1)
325
DateTimeStyles
.AllowWhiteSpaces, out dateValue))
System.Data (2)
fx\src\data\System\Data\SQLTypes\SQLDateTime.cs (2)
105
private const
DateTimeStyles
x_DateTimeStyle =
DateTimeStyles
.AllowWhiteSpaces;
System.Data.Entity (5)
System\Data\EntityModel\SchemaObjectModel\ScalarType.cs (5)
215
if (!DateTime.TryParseExact(text, DateTimeFormat, CultureInfo.InvariantCulture,
DateTimeStyles
.AssumeUniversal |
DateTimeStyles
.AdjustToUniversal, out temp))
235
if (!DateTime.TryParseExact(text, TimeFormat, CultureInfo.InvariantCulture,
DateTimeStyles
.AssumeUniversal |
DateTimeStyles
.AdjustToUniversal |
DateTimeStyles
.NoCurrentDateDefault, out temp))
System.IdentityModel (12)
System\IdentityModel\Protocols\WSTrust\WSTrustSerializationHelper.cs (2)
2536
created = DateTime.ParseExact(reader.ReadString(), DateTimeFormats.Accepted, DateTimeFormatInfo.InvariantInfo,
DateTimeStyles
.None).ToUniversalTime();
2543
expires = DateTime.ParseExact(reader.ReadString(), DateTimeFormats.Accepted, DateTimeFormatInfo.InvariantInfo,
DateTimeStyles
.None).ToUniversalTime();
System\IdentityModel\Tokens\Saml2SecurityTokenHandler.cs (1)
1378
DateTime authInstantTime = DateTime.ParseExact(authenticationInstant, DateTimeFormats.Accepted, DateTimeFormatInfo.InvariantInfo,
DateTimeStyles
.None).ToUniversalTime();
System\IdentityModel\Tokens\SamlAssertion.cs (1)
533
attributeValue, SamlConstants.AcceptedDateTimeFormats, DateTimeFormatInfo.InvariantInfo,
DateTimeStyles
.None).ToUniversalTime();
System\IdentityModel\Tokens\SamlAuthenticationStatement.cs (1)
180
authInstance, SamlConstants.AcceptedDateTimeFormats, DateTimeFormatInfo.InvariantInfo,
DateTimeStyles
.None).ToUniversalTime();
System\IdentityModel\Tokens\SamlConditions.cs (2)
116
time, SamlConstants.AcceptedDateTimeFormats, DateTimeFormatInfo.InvariantInfo,
DateTimeStyles
.None).ToUniversalTime();
121
time, SamlConstants.AcceptedDateTimeFormats, DateTimeFormatInfo.InvariantInfo,
DateTimeStyles
.None).ToUniversalTime();
System\IdentityModel\Tokens\SamlSecurityTokenHandler.cs (5)
393
DateTimeStyles
.None).ToUniversalTime();
1805
attributeValue, DateTimeFormats.Accepted, DateTimeFormatInfo.InvariantInfo,
DateTimeStyles
.None).ToUniversalTime();
1926
time, DateTimeFormats.Accepted, DateTimeFormatInfo.InvariantInfo,
DateTimeStyles
.None).ToUniversalTime();
1933
time, DateTimeFormats.Accepted, DateTimeFormatInfo.InvariantInfo,
DateTimeStyles
.None).ToUniversalTime();
2862
authInstance, DateTimeFormats.Accepted, DateTimeFormatInfo.InvariantInfo,
DateTimeStyles
.None).ToUniversalTime();
System.Runtime.Serialization (3)
System\Runtime\Serialization\DateTimeFormat.cs (3)
17
private
DateTimeStyles
dateTimeStyles;
49
this.dateTimeStyles =
DateTimeStyles
.RoundtripKind;
77
public
DateTimeStyles
DateTimeStyles
System.ServiceModel (10)
System\ServiceModel\Channels\HttpChannelHelpers.cs (2)
2617
if (DateTime.TryParse(value, DateTimeFormatInfo.InvariantInfo,
DateTimeStyles
.AllowWhiteSpaces |
DateTimeStyles
.AssumeLocal, out modifiedSinceDate))
System\ServiceModel\Dispatcher\XPathMessageContext.cs (1)
1586
return ConvertDate(DateTime.Parse(dateStr, DateTimeFormatInfo.InvariantInfo,
DateTimeStyles
.RoundtripKind));
System\ServiceModel\Security\WSTrust.cs (2)
384
WSUtilitySpecificationVersion.AcceptedDateTimeFormats, DateTimeFormatInfo.InvariantInfo,
DateTimeStyles
.None).ToUniversalTime();
390
WSUtilitySpecificationVersion.AcceptedDateTimeFormats, DateTimeFormatInfo.InvariantInfo,
DateTimeStyles
.None).ToUniversalTime();
System\ServiceModel\Syndication\Atom10FeedFormatter.cs (3)
677
DateTimeStyles
.None, out localTime))
684
DateTimeStyles
.AssumeUniversal |
DateTimeStyles
.AdjustToUniversal, out utcTime))
System\ServiceModel\Syndication\Rss20FeedFormatter.cs (2)
321
(isUtc ?
DateTimeStyles
.AdjustToUniversal :
DateTimeStyles
.None), out theTime))
System.ServiceModel.Web (5)
System\ServiceModel\Description\WebScriptClientGenerator.cs (1)
116
if (DateTime.TryParse(ifModifiedSinceHeaderValue, DateTimeFormatInfo.InvariantInfo,
DateTimeStyles
.AdjustToUniversal, out ifModifiedSinceDateTime))
System\ServiceModel\Dispatcher\QueryStringConverter.cs (3)
115
return parameter == null ? default(DateTime) : DateTime.Parse(parameter, CultureInfo.InvariantCulture,
DateTimeStyles
.RoundtripKind);
134
return (parameter == null) ? default(DateTimeOffset) : DateTimeOffset.Parse(parameter, CultureInfo.InvariantCulture,
DateTimeStyles
.RoundtripKind |
DateTimeStyles
.AllowWhiteSpaces);
System\ServiceModel\Web\OutgoingWebResponseContext.cs (1)
63
if (DateTime.TryParse(dateTime, CultureInfo.InvariantCulture,
DateTimeStyles
.None, out parsedDateTime))
System.Web (1)
UI\WebControls\basecomparevalidator.cs (1)
465
if (DateTime.TryParse(text, CultureInfo.CurrentCulture,
DateTimeStyles
.None, out date)) {
System.Web.DataVisualization (5)
Common\Converters\AxisConverters.cs (2)
210
bool parseSucceed = DateTime.TryParse(stringValue, CultureInfo.InvariantCulture,
DateTimeStyles
.None, out valueAsDate);
426
bool parseSucceed = DateTime.TryParse(stringValue, CultureInfo.CurrentCulture,
DateTimeStyles
.None, out valueAsDate);
Common\Converters\DataManagerConverters.cs (2)
525
if (DateTime.TryParse(values[index], CultureInfo.InvariantCulture,
DateTimeStyles
.None, out valueAsDate))
529
else if (DateTime.TryParse(values[index], CultureInfo.CurrentCulture,
DateTimeStyles
.None, out valueAsDate))
Common\General\AxisScrollZoom.cs (1)
1753
bool parseSucceed = DateTime.TryParse(crossingValue, CultureInfo.InvariantCulture,
DateTimeStyles
.None, out valueAsDate);
System.Windows.Forms.DataVisualization (5)
Common\Converters\AxisConverters.cs (2)
210
bool parseSucceed = DateTime.TryParse(stringValue, CultureInfo.InvariantCulture,
DateTimeStyles
.None, out valueAsDate);
426
bool parseSucceed = DateTime.TryParse(stringValue, CultureInfo.CurrentCulture,
DateTimeStyles
.None, out valueAsDate);
Common\Converters\DataManagerConverters.cs (2)
525
if (DateTime.TryParse(values[index], CultureInfo.InvariantCulture,
DateTimeStyles
.None, out valueAsDate))
529
else if (DateTime.TryParse(values[index], CultureInfo.CurrentCulture,
DateTimeStyles
.None, out valueAsDate))
Common\General\AxisScrollZoom.cs (1)
1753
bool parseSucceed = DateTime.TryParse(crossingValue, CultureInfo.InvariantCulture,
DateTimeStyles
.None, out valueAsDate);
System.Workflow.ComponentModel (2)
AuthoringOM\Serializer\WorkflowMarkupSerializer.cs (2)
1261
propVal = DateTime.Parse(value, CultureInfo.InvariantCulture,
DateTimeStyles
.RoundtripKind);
1746
obj = DateTime.Parse(stringValue, CultureInfo.InvariantCulture,
DateTimeStyles
.RoundtripKind);
System.Xml (15)
System\Xml\Serialization\Xmlcustomformatter.cs (7)
344
return DateTime.ParseExact(value, allTimeFormats, DateTimeFormatInfo.InvariantInfo,
DateTimeStyles
.AllowLeadingWhite |
DateTimeStyles
.AllowTrailingWhite |
DateTimeStyles
.NoCurrentDateDefault |
DateTimeStyles
.RoundtripKind);
348
return DateTime.ParseExact(value, allTimeFormats, DateTimeFormatInfo.InvariantInfo,
DateTimeStyles
.AllowLeadingWhite |
DateTimeStyles
.AllowTrailingWhite |
DateTimeStyles
.NoCurrentDateDefault);
System\Xml\XmlConvert.cs (8)
1250
return DateTime.ParseExact(s, format, DateTimeFormatInfo.InvariantInfo,
DateTimeStyles
.AllowLeadingWhite|
DateTimeStyles
.AllowTrailingWhite);
1258
return DateTime.ParseExact(s, formats, DateTimeFormatInfo.InvariantInfo,
DateTimeStyles
.AllowLeadingWhite|
DateTimeStyles
.AllowTrailingWhite);
1304
return DateTimeOffset.ParseExact( s, format, DateTimeFormatInfo.InvariantInfo,
DateTimeStyles
.AllowLeadingWhite |
DateTimeStyles
.AllowTrailingWhite );
1311
return DateTimeOffset.ParseExact( s, formats, DateTimeFormatInfo.InvariantInfo,
DateTimeStyles
.AllowLeadingWhite |
DateTimeStyles
.AllowTrailingWhite );
System.Xml.Linq (4)
System\Xml\Linq\XLinq.cs (4)
4796
return DateTime.Parse(element.Value, CultureInfo.InvariantCulture, System.Globalization.
DateTimeStyles
.RoundtripKind);
4815
return DateTime.Parse(element.Value, CultureInfo.InvariantCulture, System.Globalization.
DateTimeStyles
.RoundtripKind);
7011
return DateTime.Parse(attribute.value, CultureInfo.InvariantCulture, System.Globalization.
DateTimeStyles
.RoundtripKind);
7026
return DateTime.Parse(attribute.value, CultureInfo.InvariantCulture, System.Globalization.
DateTimeStyles
.RoundtripKind);
WindowsBase (3)
Base\MS\Internal\IO\Packaging\XmlSignatureProperties.cs (3)
378
DateTimeStyles
.NoCurrentDateDefault
379
|
DateTimeStyles
.AllowLeadingWhite
380
|
DateTimeStyles
.AllowTrailingWhite);