Appearance
StringParsingExtensions Class
Definition
Extension methods for parsing operations on the string datatype
- Namespace:
JASE.Extensions - Assembly:
JASE.Primitives.dll
Properties
| Name | Description |
|---|---|
DateTimeFormats | List of parsable DateTime format strings |
Methods
| Name | Description |
|---|---|
DateTime ParseDateTime(string input, CultureInfo culture = null) | Attempts to parse the current string into a DateTime using keyword detection, culture-specific formats, and standard fallback parsing. |
DateTimeOffset ParseDateTimeOffset(string input, CultureInfo culture = null, bool assumeUtc = null) | Attempts to parse the current string into a DateTime using keyword detection, culture-specific formats, and standard fallback parsing. |
DateTime? ResolveDateTimeKeyword(string input, CultureInfo culture = null) | Attempts to resolve an arbitrary string input to a point in time based on rules and optional culture |