Appearance
ParseDateTime Method
Definition
- Namespace:
JASE.Extensions - Assembly:
JASE.Primitives.dll
DateTime ParseDateTime(string input, CultureInfo culture = null)
csharp
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.
Parameters
| Name | Description |
|---|---|
culture | Optional CultureInfo used to interpret culture-specific datetime formats. Defaults to InvariantCulture if not specified. |
input | The input string to parse. Can be a specific date, a known keyword (e.g., "now", "today"), or a formatted datetime string. |
Returns
A DateTime value parsed from the input string.