Noda Time
CreateWithInvariantCulture Method (patternText)
NamespacesNodaTime.TextLocalDateTimePatternCreateWithInvariantCulture(String)

[This is preliminary documentation and is subject to change.]

Creates a pattern for the given pattern text in the invariant culture.
Declaration Syntax
C#Visual BasicVisual C++
public static LocalDateTimePattern CreateWithInvariantCulture(
	string patternText
)
Public Shared Function CreateWithInvariantCulture ( _
	patternText As String _
) As LocalDateTimePattern
public:
static LocalDateTimePattern^ CreateWithInvariantCulture(
	String^ patternText
)
Parameters
patternText (String)
Pattern text to create the pattern for
Return Value
A pattern for parsing and formatting local date/times.
Remarks
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.
Exceptions
ExceptionCondition
InvalidPatternExceptionThe pattern text was invalid.

Assembly: NodaTime (Module: NodaTime.dll) Version: 1.2.0.0 (1.2.0)