[This is preliminary documentation and is subject to change.]
Creates a pattern for the given pattern text in the current thread's current culture.

C# | Visual Basic | Visual C++ |
public static LocalDatePattern CreateWithCurrentCulture( string patternText )
Public Shared Function CreateWithCurrentCulture ( _ patternText As String _ ) As LocalDatePattern
public: static LocalDatePattern^ CreateWithCurrentCulture( String^ patternText )

- patternText (String)
- Pattern text to create the pattern for

A pattern for parsing and formatting local dates.

See the user guide for the available pattern text options. Note that the current culture
is captured at the time this method is called - it is not captured at the point of parsing
or formatting values.

Exception | Condition |
---|---|
InvalidPatternException | The pattern text was invalid. |
Assembly: NodaTime (Module: NodaTime.dll) Version: 1.2.0.0 (1.2.0)