> ## Documentation Index
> Fetch the complete documentation index at: https://docs.superoffice.com/llms.txt
> Use this file to discover all available pages before exploring further.

# SuperOffice.WebApi.Data.CultureDataFormatter

# \<a id="SuperOffice\_WebApi\_Data\_CultureDataFormatter">\</a> Class CultureDataFormatter

Namespace: [SuperOffice.WebApi.Data](SuperOffice.WebApi.Data.md)\
Assembly: SuperOffice.WebApi.dll

This is a helper class designed to encode, parse and reformat culturally sensitive data types between
an application server without culture knowledge, and a front-end with such knowledge.

```csharp theme={null}
public static class CultureDataFormatter
```

#### Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) ←
[CultureDataFormatter](SuperOffice.WebApi.Data.CultureDataFormatter.md)

#### Inherited Members

[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring),
[object.Equals(object)](https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals\(system-object\)),
[object.Equals(object, object)](https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals\(system-object-system-object\)),
[object.ReferenceEquals(object, object)](https://learn.microsoft.com/dotnet/api/system.object.referenceequals),
[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode),
[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype),
[object.MemberwiseClone()](https://learn.microsoft.com/dotnet/api/system.object.memberwiseclone)

## Remarks

\<p>\</p>
The problem: The application server does not know the culture of the current client. At the same time,
we need to be able to include culturally sensitive data (such as a date) as part of a tooltip or other
server-side generated text. Before displaying this text to the user, culturally sensitive elements need
to be parsed and reformatted to the correct culture.
\<p>\</p>
The methods in this class take care of both sides of this process. The Encode methods, such as
\<xref href="SuperOffice.WebApi.Data.CultureDataFormatter.EncodeDate(System.DateTime)" data-throw-if-not-resolved="false">\</xref>, take a native data type as input and return a string that contains both
a specification of what it is (a date) and the value formatted in the invariant culture.
\<p>\</p>
The \<xref href="SuperOffice.WebApi.Data.CultureDataFormatter.LocalizeEncoded(System.String)" data-throw-if-not-resolved="false">\</xref> method will take such a formatted element, and by calling on the
proper LocalFormat method (such as \<xref href="SuperOffice.WebApi.Data.CultureDataFormatter.LocalFormatDate(System.DateTime)" data-throw-if-not-resolved="false">\</xref>, return it in its correct form according
to the current culture settings for the thread.

## Fields

### \<a id="SuperOffice\_WebApi\_Data\_CultureDataFormatter\_BeginTag">\</a> BeginTag

```csharp theme={null}
public const string BeginTag = "["
```

#### Field Value

[string](https://learn.microsoft.com/dotnet/api/system.string)

### \<a id="SuperOffice\_WebApi\_Data\_CultureDataFormatter\_BinaryMarker">\</a> BinaryMarker

```csharp theme={null}
public const string BinaryMarker = "B"
```

#### Field Value

[string](https://learn.microsoft.com/dotnet/api/system.string)

### \<a id="SuperOffice\_WebApi\_Data\_CultureDataFormatter\_DateMarker">\</a> DateMarker

```csharp theme={null}
public const string DateMarker = "D"
```

#### Field Value

[string](https://learn.microsoft.com/dotnet/api/system.string)

### \<a id="SuperOffice\_WebApi\_Data\_CultureDataFormatter\_DateTimeMarker">\</a> DateTimeMarker

```csharp theme={null}
public const string DateTimeMarker = "DT"
```

#### Field Value

[string](https://learn.microsoft.com/dotnet/api/system.string)

### \<a id="SuperOffice\_WebApi\_Data\_CultureDataFormatter\_DoubleMarker">\</a> DoubleMarker

```csharp theme={null}
public const string DoubleMarker = "F"
```

#### Field Value

[string](https://learn.microsoft.com/dotnet/api/system.string)

### \<a id="SuperOffice\_WebApi\_Data\_CultureDataFormatter\_EndTag">\</a> EndTag

```csharp theme={null}
public const string EndTag = "]"
```

#### Field Value

[string](https://learn.microsoft.com/dotnet/api/system.string)

### \<a id="SuperOffice\_WebApi\_Data\_CultureDataFormatter\_IntArrMarker">\</a> IntArrMarker

```csharp theme={null}
public const string IntArrMarker = "A"
```

#### Field Value

[string](https://learn.microsoft.com/dotnet/api/system.string)

### \<a id="SuperOffice\_WebApi\_Data\_CultureDataFormatter\_IntMarker">\</a> IntMarker

```csharp theme={null}
public const string IntMarker = "I"
```

#### Field Value

[string](https://learn.microsoft.com/dotnet/api/system.string)

### \<a id="SuperOffice\_WebApi\_Data\_CultureDataFormatter\_MarkerSeparator">\</a> MarkerSeparator

```csharp theme={null}
public const char MarkerSeparator = ':'
```

#### Field Value

[char](https://learn.microsoft.com/dotnet/api/system.char)

### \<a id="SuperOffice\_WebApi\_Data\_CultureDataFormatter\_MoneyMarker">\</a> MoneyMarker

```csharp theme={null}
public const string MoneyMarker = "M"
```

#### Field Value

[string](https://learn.microsoft.com/dotnet/api/system.string)

### \<a id="SuperOffice\_WebApi\_Data\_CultureDataFormatter\_TimeMarker">\</a> TimeMarker

```csharp theme={null}
public const string TimeMarker = "T"
```

#### Field Value

[string](https://learn.microsoft.com/dotnet/api/system.string)

### \<a id="SuperOffice\_WebApi\_Data\_CultureDataFormatter\_TimeSpanMarker">\</a> TimeSpanMarker

```csharp theme={null}
public const string TimeSpanMarker = "TS"
```

#### Field Value

[string](https://learn.microsoft.com/dotnet/api/system.string)

## Methods

### \<a id="SuperOffice\_WebApi\_Data\_CultureDataFormatter\_AddColon\_System\_String\_">\</a> AddColon(string)

Add a colon to a string if it was not already there, strip any whitespace

```csharp theme={null}
public static string AddColon(string label)
```

#### Parameters

`label` [string](https://learn.microsoft.com/dotnet/api/system.string)

String to process

#### Returns

[string](https://learn.microsoft.com/dotnet/api/system.string)

Original string, now guaranteed to end in exactly one colon

### \<a id="SuperOffice\_WebApi\_Data\_CultureDataFormatter\_AddTerminator\_System\_String\_System\_String\_">\</a> AddTerminator(string, string)

Add a terminator to a string. The string is first stripped, then the terminator is added at the end with no whitespace.

```csharp theme={null}
public static string AddTerminator(string label, string terminator)
```

#### Parameters

`label` [string](https://learn.microsoft.com/dotnet/api/system.string)

String to process

`terminator` [string](https://learn.microsoft.com/dotnet/api/system.string)

Terminator to add

#### Returns

[string](https://learn.microsoft.com/dotnet/api/system.string)

String, now ending with terminator and no white space

### \<a id="SuperOffice\_WebApi\_Data\_CultureDataFormatter\_CompareEncoded\_System\_String\_System\_String\_">\</a> CompareEncoded(string, string)

Compare two encoded strings, by parsing them into their underlying data datatype and comparing those

```csharp theme={null}
public static int CompareEncoded(string x, string y)
```

#### Parameters

`x` [string](https://learn.microsoft.com/dotnet/api/system.string)

Formatted string

`y` [string](https://learn.microsoft.com/dotnet/api/system.string)

Formatted string

#### Returns

[int](https://learn.microsoft.com/dotnet/api/system.int32)

-1, 0 or 1 depending on the ordering relation between x and y

### \<a id="SuperOffice\_WebApi\_Data\_CultureDataFormatter\_Encode\_System\_Object\_">\</a> Encode(object)

Encode a object based on type. Types supported: DateTime, Double, Integer, String and Boolean

```csharp theme={null}
public static string Encode(object value)
```

#### Parameters

`value` [object](https://learn.microsoft.com/dotnet/api/system.object)

Object to be encoded

#### Returns

[string](https://learn.microsoft.com/dotnet/api/system.string)

Encoded object

### \<a id="SuperOffice\_WebApi\_Data\_CultureDataFormatter\_EncodeBinary\_System\_IO\_Stream\_">\</a> EncodeBinary(Stream)

Encode a block of binary data, such as an image

```csharp theme={null}
public static string EncodeBinary(Stream data)
```

#### Parameters

`data` [Stream](https://learn.microsoft.com/dotnet/api/system.io.stream)

DateTime whose date component is to be encoded

#### Returns

[string](https://learn.microsoft.com/dotnet/api/system.string)

Encoded date

### \<a id="SuperOffice\_WebApi\_Data\_CultureDataFormatter\_EncodeBinary\_System\_IO\_Stream\_System\_Boolean\_">\</a> EncodeBinary(Stream, bool)

Encode a block of binary data, such as an image

```csharp theme={null}
public static string EncodeBinary(Stream data, bool performEncode)
```

#### Parameters

`data` [Stream](https://learn.microsoft.com/dotnet/api/system.io.stream)

Stream be encoded

`performEncode` [bool](https://learn.microsoft.com/dotnet/api/system.boolean)

If true, the input parameter is encoded to string. If false, an empty string is returned instead.
This parameter is implemented to streamline coding of optimized field population in the archive providers, where a mode
switch may eliminate the need for string-encoded display values.

#### Returns

[string](https://learn.microsoft.com/dotnet/api/system.string)

Encoded date

### \<a id="SuperOffice\_WebApi\_Data\_CultureDataFormatter\_EncodeBinaryNoTags\_System\_IO\_Stream\_">\</a> EncodeBinaryNoTags(Stream)

```csharp theme={null}
public static string EncodeBinaryNoTags(Stream data)
```

#### Parameters

`data` [Stream](https://learn.microsoft.com/dotnet/api/system.io.stream)

#### Returns

[string](https://learn.microsoft.com/dotnet/api/system.string)

### \<a id="SuperOffice\_WebApi\_Data\_CultureDataFormatter\_EncodeDate\_System\_DateTime\_">\</a> EncodeDate(DateTime)

Encode a date, without a time part

```csharp theme={null}
public static string EncodeDate(DateTime dateTime)
```

#### Parameters

`dateTime` [DateTime](https://learn.microsoft.com/dotnet/api/system.datetime)

DateTime whose date component is to be encoded

#### Returns

[string](https://learn.microsoft.com/dotnet/api/system.string)

Encoded date

### \<a id="SuperOffice\_WebApi\_Data\_CultureDataFormatter\_EncodeDate\_System\_DateTime\_System\_Boolean\_">\</a> EncodeDate(DateTime, bool)

Encode a date, without a time part.
Optionally skip encoding and return an empty string instead.

```csharp theme={null}
public static string EncodeDate(DateTime dateTime, bool performEncode)
```

#### Parameters

`dateTime` [DateTime](https://learn.microsoft.com/dotnet/api/system.datetime)

DateTime whose date component is to be encoded

`performEncode` [bool](https://learn.microsoft.com/dotnet/api/system.boolean)

If true, the input parameter is encoded to string. If false, an empty string is returned instead.
This parameter is implemented to streamline coding of optimized field population in the archive providers, where a mode
switch may eliminate the need for string-encoded display values.

#### Returns

[string](https://learn.microsoft.com/dotnet/api/system.string)

Encoded date

### \<a id="SuperOffice\_WebApi\_Data\_CultureDataFormatter\_EncodeDateTime\_System\_DateTime\_">\</a> EncodeDateTime(DateTime)

Encode a date, with a time part.

```csharp theme={null}
public static string EncodeDateTime(DateTime dateTime)
```

#### Parameters

`dateTime` [DateTime](https://learn.microsoft.com/dotnet/api/system.datetime)

DateTime whose date and time components are to be encoded

#### Returns

[string](https://learn.microsoft.com/dotnet/api/system.string)

Encoded date/time

### \<a id="SuperOffice\_WebApi\_Data\_CultureDataFormatter\_EncodeDateTime\_System\_DateTime\_System\_Boolean\_">\</a> EncodeDateTime(DateTime, bool)

Encode a date, with a time part.
Optionally skip encoding and return an empty string instead.

```csharp theme={null}
public static string EncodeDateTime(DateTime dateTime, bool performEncode)
```

#### Parameters

`dateTime` [DateTime](https://learn.microsoft.com/dotnet/api/system.datetime)

DateTime whose date and time components are to be encoded

`performEncode` [bool](https://learn.microsoft.com/dotnet/api/system.boolean)

If true, the input parameter is encoded to string. If false, an empty string is returned instead.
This parameter is implemented to streamline coding of optimized field population in the archive providers, where a mode
switch may eliminate the need for string-encoded display values.

#### Returns

[string](https://learn.microsoft.com/dotnet/api/system.string)

Encoded date/time

### \<a id="SuperOffice\_WebApi\_Data\_CultureDataFormatter\_EncodeDouble\_System\_Double\_System\_Int32\_">\</a> EncodeDouble(double, int)

Encode a double (decimal value), with the given number of decimals. Note that the full
precision is included here, but rounded to the given number of decimals on (re)localization.
Also note that currency amounts should use the EncodeMoney method, if the cultural settings for
money are to be taken into account (though the currency symbol is NOT used in localization,
because we may be displaying non-native currencies, saying \$ when it's actually € or NOK is silly).

```csharp theme={null}
public static string EncodeDouble(double val, int decimals)
```

#### Parameters

`val` [double](https://learn.microsoft.com/dotnet/api/system.double)

Value to be encoded

`decimals` [int](https://learn.microsoft.com/dotnet/api/system.int32)

Final desired number of decimals

#### Returns

[string](https://learn.microsoft.com/dotnet/api/system.string)

Encoded value

### \<a id="SuperOffice\_WebApi\_Data\_CultureDataFormatter\_EncodeDouble\_System\_Double\_System\_Int32\_System\_Boolean\_">\</a> EncodeDouble(double, int, bool)

Encode a double (decimal value), with the given number of decimals. Note that the full
precision is included here, but rounded to the given number of decimals on (re)localization.
Also note that currency amounts should use the EncodeMoney method, if the cultural settings for
money are to be taken into account (though the currency symbol is NOT used in localization,
because we may be displaying non-native currencies, saying \$ when it's actually € or NOK is silly).
Optionally skip encoding and return an empty string instead.

```csharp theme={null}
public static string EncodeDouble(double val, int decimals, bool performEncode)
```

#### Parameters

`val` [double](https://learn.microsoft.com/dotnet/api/system.double)

Value to be encoded

`decimals` [int](https://learn.microsoft.com/dotnet/api/system.int32)

Final desired number of decimals

`performEncode` [bool](https://learn.microsoft.com/dotnet/api/system.boolean)

If true, the input parameter is encoded to string. If false, an empty string is returned instead.
This parameter is implemented to streamline coding of optimized field population in the archive providers, where a mode
switch may eliminate the need for string-encoded display values.

#### Returns

[string](https://learn.microsoft.com/dotnet/api/system.string)

Encoded value

### \<a id="SuperOffice\_WebApi\_Data\_CultureDataFormatter\_EncodeDouble\_System\_Double\_">\</a> EncodeDouble(double)

Encode a double (decimal value). On localization, the default number of decimal digits will be used.
Also note that currency amounts should use the EncodeMoney method, if the cultural settings for
money are to be taken into account (though the currency symbol is NOT used in localization,
because we may be displaying non-native currencies).

```csharp theme={null}
public static string EncodeDouble(double val)
```

#### Parameters

`val` [double](https://learn.microsoft.com/dotnet/api/system.double)

Value to be encoded

#### Returns

[string](https://learn.microsoft.com/dotnet/api/system.string)

Encoded value

### \<a id="SuperOffice\_WebApi\_Data\_CultureDataFormatter\_EncodeDouble\_System\_Double\_System\_Boolean\_">\</a> EncodeDouble(double, bool)

Encode a double (decimal value). On localization, the default number of decimal digits will be used.
Also note that currency amounts should use the EncodeMoney method, if the cultural settings for
money are to be taken into account (though the currency symbol is NOT used in localization,
because we may be displaying non-native currencies).
Optionally skip encoding and return an empty string instead.

```csharp theme={null}
public static string EncodeDouble(double val, bool performEncode)
```

#### Parameters

`val` [double](https://learn.microsoft.com/dotnet/api/system.double)

Value to be encoded

`performEncode` [bool](https://learn.microsoft.com/dotnet/api/system.boolean)

If true, the input parameter is encoded to string. If false, an empty string is returned instead.
This parameter is implemented to streamline coding of optimized field population in the archive providers, where a mode
switch may eliminate the need for string-encoded display values.

#### Returns

[string](https://learn.microsoft.com/dotnet/api/system.string)

Encoded value

### \<a id="SuperOffice\_WebApi\_Data\_CultureDataFormatter\_EncodeInt\_System\_Int32\_">\</a> EncodeInt(int)

Encode an integer. Integers are usually not culturally sensitive... but who knows.

```csharp theme={null}
public static string EncodeInt(int val)
```

#### Parameters

`val` [int](https://learn.microsoft.com/dotnet/api/system.int32)

Value to encode

#### Returns

[string](https://learn.microsoft.com/dotnet/api/system.string)

Encoded value

### \<a id="SuperOffice\_WebApi\_Data\_CultureDataFormatter\_EncodeInt\_System\_Int32\_System\_Boolean\_">\</a> EncodeInt(int, bool)

Encode an integer. Integers are usually not culturally sensitive... but who knows.
Optionally skip encoding and return an empty string instead.

```csharp theme={null}
public static string EncodeInt(int val, bool performEncode)
```

#### Parameters

`val` [int](https://learn.microsoft.com/dotnet/api/system.int32)

Value to encode

`performEncode` [bool](https://learn.microsoft.com/dotnet/api/system.boolean)

If true, the input parameter is encoded to string. If false, an empty string is returned instead.
This parameter is implemented to streamline coding of optimized field population in the archive providers, where a mode
switch may eliminate the need for string-encoded display values.

#### Returns

[string](https://learn.microsoft.com/dotnet/api/system.string)

Encoded value

### \<a id="SuperOffice\_WebApi\_Data\_CultureDataFormatter\_EncodeIntArr\_System\_Int32\_\_\_">\</a> EncodeIntArr(params int\[])

```csharp theme={null}
public static string EncodeIntArr(params int[] intArr)
```

#### Parameters

`intArr` [int](https://learn.microsoft.com/dotnet/api/system.int32)\[]

#### Returns

[string](https://learn.microsoft.com/dotnet/api/system.string)

### \<a id="SuperOffice\_WebApi\_Data\_CultureDataFormatter\_EncodeMoney\_System\_Double\_">\</a> EncodeMoney(double)

Encode a double, for displaying it as money. The local user settings for currency, EXCEPT the currency
symbol, will be used for display. No currency symbol will be display regardless of settings.

```csharp theme={null}
public static string EncodeMoney(double val)
```

#### Parameters

`val` [double](https://learn.microsoft.com/dotnet/api/system.double)

Value to encode

#### Returns

[string](https://learn.microsoft.com/dotnet/api/system.string)

Encoded value

### \<a id="SuperOffice\_WebApi\_Data\_CultureDataFormatter\_EncodeMoney\_System\_Double\_System\_Boolean\_">\</a> EncodeMoney(double, bool)

Encode a double, for displaying it as money. The local user settings for currency, EXCEPT the currency
symbol, will be used for display. No currency symbol will be display regardless of settings.
Optionally skip encoding and return an empty string instead.

```csharp theme={null}
public static string EncodeMoney(double val, bool performEncode)
```

#### Parameters

`val` [double](https://learn.microsoft.com/dotnet/api/system.double)

Value to encode

`performEncode` [bool](https://learn.microsoft.com/dotnet/api/system.boolean)

If true, the input parameter is encoded to string. If false, an empty string is returned instead.
This parameter is implemented to streamline coding of optimized field population in the archive providers, where a mode
switch may eliminate the need for string-encoded display values.

#### Returns

[string](https://learn.microsoft.com/dotnet/api/system.string)

Encoded value

### \<a id="SuperOffice\_WebApi\_Data\_CultureDataFormatter\_EncodeTime\_System\_DateTime\_">\</a> EncodeTime(DateTime)

Encode a time, without a date part

```csharp theme={null}
public static string EncodeTime(DateTime dateTime)
```

#### Parameters

`dateTime` [DateTime](https://learn.microsoft.com/dotnet/api/system.datetime)

DateTime whose time component is to be encoded

#### Returns

[string](https://learn.microsoft.com/dotnet/api/system.string)

Encoded time

### \<a id="SuperOffice\_WebApi\_Data\_CultureDataFormatter\_EncodeTime\_System\_DateTime\_System\_Boolean\_">\</a> EncodeTime(DateTime, bool)

Encode a time, without a date part.
Optionally skip encoding and return an empty string instead.

```csharp theme={null}
public static string EncodeTime(DateTime dateTime, bool performEncode)
```

#### Parameters

`dateTime` [DateTime](https://learn.microsoft.com/dotnet/api/system.datetime)

DateTime whose time component is to be encoded

`performEncode` [bool](https://learn.microsoft.com/dotnet/api/system.boolean)

If true, the input parameter is encoded to string. If false, an empty string is returned instead.
This parameter is implemented to streamline coding of optimized field population in the archive providers, where a mode
switch may eliminate the need for string-encoded display values.

#### Returns

[string](https://learn.microsoft.com/dotnet/api/system.string)

Encoded time

### \<a id="SuperOffice\_WebApi\_Data\_CultureDataFormatter\_EncodeTimeSpan\_System\_TimeSpan\_System\_Boolean\_">\</a> EncodeTimeSpan(TimeSpan, bool)

Encode a timespan, encodes total number of seconds
Optionally skip encoding and return an empty string instead.

```csharp theme={null}
public static string EncodeTimeSpan(TimeSpan timeSpan, bool performEncode = true)
```

#### Parameters

`timeSpan` [TimeSpan](https://learn.microsoft.com/dotnet/api/system.timespan)

TimeSpan to be encoded.

`performEncode` [bool](https://learn.microsoft.com/dotnet/api/system.boolean)

If true, the input parameter is encoded to string. If false, an empty string is returned instead.
This parameter is implemented to streamline coding of optimized field population in the archive providers, where a mode
switch may eliminate the need for string-encoded display values.

#### Returns

[string](https://learn.microsoft.com/dotnet/api/system.string)

Encoded time

### \<a id="SuperOffice\_WebApi\_Data\_CultureDataFormatter\_EncodeTimeSpan\_System\_Int32\_System\_Boolean\_">\</a> EncodeTimeSpan(int, bool)

Encode a timespan
Optionally skip encoding and return an empty string instead.

```csharp theme={null}
public static string EncodeTimeSpan(int seconds, bool performEncode = true)
```

#### Parameters

`seconds` [int](https://learn.microsoft.com/dotnet/api/system.int32)

Seconds to be encoded.

`performEncode` [bool](https://learn.microsoft.com/dotnet/api/system.boolean)

If true, the input parameter is encoded to string. If false, an empty string is returned instead.
This parameter is implemented to streamline coding of optimized field population in the archive providers, where a mode
switch may eliminate the need for string-encoded display values.

#### Returns

[string](https://learn.microsoft.com/dotnet/api/system.string)

Encoded time

### \<a id="SuperOffice\_WebApi\_Data\_CultureDataFormatter\_GetCultureDisplayName\_System\_Globalization\_CultureInfo\_">\</a> GetCultureDisplayName(CultureInfo)

```csharp theme={null}
public static string GetCultureDisplayName(CultureInfo cultureInfo)
```

#### Parameters

`cultureInfo` [CultureInfo](https://learn.microsoft.com/dotnet/api/system.globalization.cultureinfo)

#### Returns

[string](https://learn.microsoft.com/dotnet/api/system.string)

### \<a id="SuperOffice\_WebApi\_Data\_CultureDataFormatter\_GetReadableTimeSpan\_System\_Int32\_System\_Boolean\_System\_String\_System\_String\_System\_String\_System\_String\_System\_String\_">\</a> GetReadableTimeSpan(int, bool, string, string, string, string, string)

Convert the time/duration/timespan to a "readable" text - either seconds, or day/hour/minute/second

```csharp theme={null}
public static string GetReadableTimeSpan(int seconds, bool mostSignificant, string daySignifier = "d", string hourSignifier = "h", string minuteSignifier = "m", string secondSignifier = "s", string zeroSignifier = null)
```

#### Parameters

`seconds` [int](https://learn.microsoft.com/dotnet/api/system.int32)

Total seconds to convert

`mostSignificant` [bool](https://learn.microsoft.com/dotnet/api/system.boolean)

If true, then only show the most-significant unit; otherwise show d/h/m/s

`daySignifier` [string](https://learn.microsoft.com/dotnet/api/system.string)

The string to use for the day component suffix

`hourSignifier` [string](https://learn.microsoft.com/dotnet/api/system.string)

The string to use for the hour component suffix

`minuteSignifier` [string](https://learn.microsoft.com/dotnet/api/system.string)

The string to use for the minute component suffix

`secondSignifier` [string](https://learn.microsoft.com/dotnet/api/system.string)

The string to use for the second component suffix

`zeroSignifier` [string](https://learn.microsoft.com/dotnet/api/system.string)

The suffix string to use when 0 seconds were passed. Empty string might be returned if this parameter was missing

#### Returns

[string](https://learn.microsoft.com/dotnet/api/system.string)

Formatted string

### \<a id="SuperOffice\_WebApi\_Data\_CultureDataFormatter\_GetStringType\_System\_String\_System\_String\_\_System\_Int32\_\_">\</a> GetStringType(string, out string, out int)

```csharp theme={null}
public static string GetStringType(string encodedSomething, out string val, out int decimals)
```

#### Parameters

`encodedSomething` [string](https://learn.microsoft.com/dotnet/api/system.string)

`val` [string](https://learn.microsoft.com/dotnet/api/system.string)

`decimals` [int](https://learn.microsoft.com/dotnet/api/system.int32)

#### Returns

[string](https://learn.microsoft.com/dotnet/api/system.string)

### \<a id="SuperOffice\_WebApi\_Data\_CultureDataFormatter\_GetSuperOfficeLanguages">\</a> GetSuperOfficeLanguages()

Get all current supported superoffice languages, by superoffice language code (win legacy)

```csharp theme={null}
public static IEnumerable<string> GetSuperOfficeLanguages()
```

#### Returns

[IEnumerable](https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1)\<[string](https://learn.microsoft.com/dotnet/api/system.string)\&gt;

### \<a id="SuperOffice\_WebApi\_Data\_CultureDataFormatter\_LocalFormatDate\_System\_DateTime\_">\</a> LocalFormatDate(DateTime)

Format a date (without time) according to current settings

```csharp theme={null}
public static string LocalFormatDate(DateTime dateTime)
```

#### Parameters

`dateTime` [DateTime](https://learn.microsoft.com/dotnet/api/system.datetime)

DateTime to be formatted

#### Returns

[string](https://learn.microsoft.com/dotnet/api/system.string)

Formatted date

### \<a id="SuperOffice\_WebApi\_Data\_CultureDataFormatter\_LocalFormatDateTime\_System\_DateTime\_">\</a> LocalFormatDateTime(DateTime)

Format a date with time according to current settings

```csharp theme={null}
public static string LocalFormatDateTime(DateTime dateTime)
```

#### Parameters

`dateTime` [DateTime](https://learn.microsoft.com/dotnet/api/system.datetime)

Datetime to be formatted

#### Returns

[string](https://learn.microsoft.com/dotnet/api/system.string)

Formatted date and time

### \<a id="SuperOffice\_WebApi\_Data\_CultureDataFormatter\_LocalFormatDouble\_System\_Double\_System\_Int32\_">\</a> LocalFormatDouble(double, int)

Format a double, with the given number of decimal digits; otherwise the current settings will be followed

```csharp theme={null}
public static string LocalFormatDouble(double val, int decimals)
```

#### Parameters

`val` [double](https://learn.microsoft.com/dotnet/api/system.double)

Double to be formatted

`decimals` [int](https://learn.microsoft.com/dotnet/api/system.int32)

Desired number of decimals

#### Returns

[string](https://learn.microsoft.com/dotnet/api/system.string)

Formatted number

### \<a id="SuperOffice\_WebApi\_Data\_CultureDataFormatter\_LocalFormatInt\_System\_Int32\_">\</a> LocalFormatInt(int)

Format an integer according to current settings

```csharp theme={null}
public static string LocalFormatInt(int val)
```

#### Parameters

`val` [int](https://learn.microsoft.com/dotnet/api/system.int32)

int to be formatted

#### Returns

[string](https://learn.microsoft.com/dotnet/api/system.string)

Formatted integer

### \<a id="SuperOffice\_WebApi\_Data\_CultureDataFormatter\_LocalFormatLongDate\_System\_DateTime\_">\</a> LocalFormatLongDate(DateTime)

Format a long date (without time) according to current settings

```csharp theme={null}
public static string LocalFormatLongDate(DateTime dateTime)
```

#### Parameters

`dateTime` [DateTime](https://learn.microsoft.com/dotnet/api/system.datetime)

DateTime to be formatted

#### Returns

[string](https://learn.microsoft.com/dotnet/api/system.string)

Formatted long date

### \<a id="SuperOffice\_WebApi\_Data\_CultureDataFormatter\_LocalFormatLongDateTime\_System\_DateTime\_">\</a> LocalFormatLongDateTime(DateTime)

Format a long date with a short time according to current settings

```csharp theme={null}
public static string LocalFormatLongDateTime(DateTime dateTime)
```

#### Parameters

`dateTime` [DateTime](https://learn.microsoft.com/dotnet/api/system.datetime)

Datetime to be formatted

#### Returns

[string](https://learn.microsoft.com/dotnet/api/system.string)

Formatted long date and short time

### \<a id="SuperOffice\_WebApi\_Data\_CultureDataFormatter\_LocalFormatMoney\_System\_Double\_">\</a> LocalFormatMoney(double)

Format a double as a currency value, though without a currency symbol. Other local settings for currencies will be followed.

```csharp theme={null}
public static string LocalFormatMoney(double val)
```

#### Parameters

`val` [double](https://learn.microsoft.com/dotnet/api/system.double)

Double to be formatted

#### Returns

[string](https://learn.microsoft.com/dotnet/api/system.string)

Formatted amount

### \<a id="SuperOffice\_WebApi\_Data\_CultureDataFormatter\_LocalFormatTime\_System\_DateTime\_">\</a> LocalFormatTime(DateTime)

Format a time without date according to current settings

```csharp theme={null}
public static string LocalFormatTime(DateTime dateTime)
```

#### Parameters

`dateTime` [DateTime](https://learn.microsoft.com/dotnet/api/system.datetime)

DateTime to be formatted

#### Returns

[string](https://learn.microsoft.com/dotnet/api/system.string)

Formatted time, without date

### \<a id="SuperOffice\_WebApi\_Data\_CultureDataFormatter\_LocalizeEncoded\_System\_String\_">\</a> LocalizeEncoded(string)

Take an encoded value of any type, parse it, and reformat it to its localized (current culture) string form

```csharp theme={null}
public static string LocalizeEncoded(string encodedSomething)
```

#### Parameters

`encodedSomething` [string](https://learn.microsoft.com/dotnet/api/system.string)

Output from one of the Encode methods

#### Returns

[string](https://learn.microsoft.com/dotnet/api/system.string)

Equivalent, localized value

### \<a id="SuperOffice\_WebApi\_Data\_CultureDataFormatter\_MapCsLanguageToSuperOfficeLanguage\_System\_String\_">\</a> MapCsLanguageToSuperOfficeLanguage(string)

Convert a language code from cs to SuperOffice language code.

```csharp theme={null}
public static string MapCsLanguageToSuperOfficeLanguage(string csLang)
```

#### Parameters

`csLang` [string](https://learn.microsoft.com/dotnet/api/system.string)

#### Returns

[string](https://learn.microsoft.com/dotnet/api/system.string)

SuperOffice languagecode or string.empty if none found

### \<a id="SuperOffice\_WebApi\_Data\_CultureDataFormatter\_MapCultureToSuperOfficeLanguage\_System\_String\_">\</a> MapCultureToSuperOfficeLanguage(string)

Converts .net Culture name ("sv-SE") to SuperOffice language code ("SW").

```csharp theme={null}
public static string MapCultureToSuperOfficeLanguage(string cultureName)
```

#### Parameters

`cultureName` [string](https://learn.microsoft.com/dotnet/api/system.string)

Either a culture name or a SuperOffice language code.

#### Returns

[string](https://learn.microsoft.com/dotnet/api/system.string)

A SuperOffice language code. (US, NO, SW, DA, FI, FR, GE, IT, NL, SP, PL, RU, CN, CZ, JP, UK, KO, VI, BR, CH)

#### Remarks

Converting to a SuperOffice language code twice is harmless.
\<p>\</p>
If unable to determine a mapping, the default is US (English).
\<p>\</p>
See also \<a href="[http://msdn.microsoft.com/en-us/library/system.globalization.cultureinfo.aspx"\&gt;MSDN](http://msdn.microsoft.com/en-us/library/system.globalization.cultureinfo.aspx"\&gt;MSDN) on culture codes\</a>.

#### See Also

[CultureDataFormatter](SuperOffice.WebApi.Data.CultureDataFormatter.md).[MapSuperOfficeLanguageToCulture](SuperOffice.WebApi.Data.CultureDataFormatter.md#SuperOffice_WebApi_Data_CultureDataFormatter_MapSuperOfficeLanguageToCulture_System_String_)([string](https://learn.microsoft.com/dotnet/api/system.string))

### \<a id="SuperOffice\_WebApi\_Data\_CultureDataFormatter\_MapLCIDToSuperOfficeLanguage\_System\_Int32\_">\</a> MapLCIDToSuperOfficeLanguage(int)

Converts a .net culture LCID to SuperOffice Language Code

```csharp theme={null}
public static string MapLCIDToSuperOfficeLanguage(int lcid)
```

#### Parameters

`lcid` [int](https://learn.microsoft.com/dotnet/api/system.int32)

The LCID to convert

#### Returns

[string](https://learn.microsoft.com/dotnet/api/system.string)

The SuperOffice language code if defined - the two letter iso name if undefined

### \<a id="SuperOffice\_WebApi\_Data\_CultureDataFormatter\_MapLanguageToCsLanguage\_System\_String\_">\</a> MapLanguageToCsLanguage(string)

Convert a language code to the language code expected by CS.

```csharp theme={null}
public static string MapLanguageToCsLanguage(string languageCode)
```

#### Parameters

`languageCode` [string](https://learn.microsoft.com/dotnet/api/system.string)

#### Returns

[string](https://learn.microsoft.com/dotnet/api/system.string)

### \<a id="SuperOffice\_WebApi\_Data\_CultureDataFormatter\_MapSuperOfficeLanguageToCulture\_System\_String\_">\</a> MapSuperOfficeLanguageToCulture(string)

Converts a SuperOffice language code ("SW") to a neutral .net culture name ("sv")

```csharp theme={null}
public static string MapSuperOfficeLanguageToCulture(string superOfficeLanguageCode)
```

#### Parameters

`superOfficeLanguageCode` [string](https://learn.microsoft.com/dotnet/api/system.string)

SuperOffice language code. (US, NO, SW, DA, FI, FR, GE, IT, NL, SP, PL, RU, CN, CZ, JP, UK, KO, VI, BR, CH)

#### Returns

[string](https://learn.microsoft.com/dotnet/api/system.string)

.net neutral Culture name, or empty string (invariant culture) if no mapping found

#### Remarks

If unable to determine a mapping, the default is US (English).
\<p>\</p>
See also \<a href="[http://msdn.microsoft.com/en-us/library/system.globalization.cultureinfo.aspx"\&gt;MSDN](http://msdn.microsoft.com/en-us/library/system.globalization.cultureinfo.aspx"\&gt;MSDN) on culture codes\</a>.

#### See Also

[CultureDataFormatter](SuperOffice.WebApi.Data.CultureDataFormatter.md).[MapCultureToSuperOfficeLanguage](SuperOffice.WebApi.Data.CultureDataFormatter.md#SuperOffice_WebApi_Data_CultureDataFormatter_MapCultureToSuperOfficeLanguage_System_String_)([string](https://learn.microsoft.com/dotnet/api/system.string))

### \<a id="SuperOffice\_WebApi\_Data\_CultureDataFormatter\_ParseEncoded\_System\_String\_">\</a> ParseEncoded(string)

Inspect the marker and parse the content, returning a strongly typed object (double, int, byte\[], DateTime etc)

```csharp theme={null}
public static object ParseEncoded(string encodedSomething)
```

#### Parameters

`encodedSomething` [string](https://learn.microsoft.com/dotnet/api/system.string)

#### Returns

[object](https://learn.microsoft.com/dotnet/api/system.object)

### \<a id="SuperOffice\_WebApi\_Data\_CultureDataFormatter\_ParseEncodedBinary\_System\_String\_">\</a> ParseEncodedBinary(string)

Parse/decode an encoded binary data block - either with a marker, or just a Base64 encoded string

```csharp theme={null}
public static byte[] ParseEncodedBinary(string encodedBinary)
```

#### Parameters

`encodedBinary` [string](https://learn.microsoft.com/dotnet/api/system.string)

#### Returns

[byte](https://learn.microsoft.com/dotnet/api/system.byte)\[]

### \<a id="SuperOffice\_WebApi\_Data\_CultureDataFormatter\_ParseEncodedDate\_System\_String\_">\</a> ParseEncodedDate(string)

```csharp theme={null}
public static DateTime ParseEncodedDate(string encodedDate)
```

#### Parameters

`encodedDate` [string](https://learn.microsoft.com/dotnet/api/system.string)

#### Returns

[DateTime](https://learn.microsoft.com/dotnet/api/system.datetime)

### \<a id="SuperOffice\_WebApi\_Data\_CultureDataFormatter\_ParseEncodedDecimal\_System\_String\_">\</a> ParseEncodedDecimal(string)

Parse "123.4" and "\[F:123.4]" into 123.4

```csharp theme={null}
public static decimal ParseEncodedDecimal(string encodedDecimal)
```

#### Parameters

`encodedDecimal` [string](https://learn.microsoft.com/dotnet/api/system.string)

"123.4" or "\[F:123.4]"

#### Returns

[decimal](https://learn.microsoft.com/dotnet/api/system.decimal)

The value or an exception if not a decimal

### \<a id="SuperOffice\_WebApi\_Data\_CultureDataFormatter\_ParseEncodedDouble\_System\_String\_">\</a> ParseEncodedDouble(string)

Parse "123.4" and "\[F:123.4]" into 123.4

```csharp theme={null}
public static double ParseEncodedDouble(string encodedDouble)
```

#### Parameters

`encodedDouble` [string](https://learn.microsoft.com/dotnet/api/system.string)

"123.4" or "\[F:123.4]"

#### Returns

[double](https://learn.microsoft.com/dotnet/api/system.double)

The value or an exception if not an double

### \<a id="SuperOffice\_WebApi\_Data\_CultureDataFormatter\_ParseEncodedInt\_System\_String\_">\</a> ParseEncodedInt(string)

Parse "123" and "\[I:123]" into 123.
Parse "abc" into 0.
Does not throw, but returns 0.

```csharp theme={null}
public static int ParseEncodedInt(string encodedInt)
```

#### Parameters

`encodedInt` [string](https://learn.microsoft.com/dotnet/api/system.string)

"123" or "\[I:123]"

#### Returns

[int](https://learn.microsoft.com/dotnet/api/system.int32)

The value as int, or 0 if not an integer

### \<a id="SuperOffice\_WebApi\_Data\_CultureDataFormatter\_ParseEncodedInt\_System\_String\_System\_Boolean\_">\</a> ParseEncodedInt(string, bool)

Parse "123" and "\[I:123]" into 123.

```csharp theme={null}
public static int ParseEncodedInt(string encodedInt, bool strictly)
```

#### Parameters

`encodedInt` [string](https://learn.microsoft.com/dotnet/api/system.string)

"123" or "\[I:123]"

`strictly` [bool](https://learn.microsoft.com/dotnet/api/system.boolean)

If true, then throws instead of returning 0 for non-numbers

#### Returns

[int](https://learn.microsoft.com/dotnet/api/system.int32)

The value or an exception if not an integer

### \<a id="SuperOffice\_WebApi\_Data\_CultureDataFormatter\_ParseEncodedIntArr\_System\_String\_">\</a> ParseEncodedIntArr(string)

```csharp theme={null}
public static int[] ParseEncodedIntArr(string encodedIntArr)
```

#### Parameters

`encodedIntArr` [string](https://learn.microsoft.com/dotnet/api/system.string)

#### Returns

[int](https://learn.microsoft.com/dotnet/api/system.int32)\[]

### \<a id="SuperOffice\_WebApi\_Data\_CultureDataFormatter\_ParseEncodedTimeSpan\_System\_String\_System\_Boolean\_">\</a> ParseEncodedTimeSpan(string, bool)

```csharp theme={null}
public static int ParseEncodedTimeSpan(string encodedTimeSpan, bool strictly = false)
```

#### Parameters

`encodedTimeSpan` [string](https://learn.microsoft.com/dotnet/api/system.string)

`strictly` [bool](https://learn.microsoft.com/dotnet/api/system.boolean)

#### Returns

[int](https://learn.microsoft.com/dotnet/api/system.int32)

### \<a id="SuperOffice\_WebApi\_Data\_CultureDataFormatter\_ParseInlineElements\_System\_String\_System\_String\_">\</a> ParseInlineElements(string, string)

Parses a resource string with inline culture-sensitive data in the text, for instance dates... provided they have
been encoded using the SuperOffice.CRM.Globalization.CultureDataFormatter in the first place.
Multi-language elements are also handled, before any culture-sensitive elements.

```csharp theme={null}
public static string ParseInlineElements(string resourceString, string cultureName)
```

#### Parameters

`resourceString` [string](https://learn.microsoft.com/dotnet/api/system.string)

The string to parse

`cultureName` [string](https://learn.microsoft.com/dotnet/api/system.string)

The cultureName, typically en-US, nb-NO, but also US, NO is accepted

#### Returns

[string](https://learn.microsoft.com/dotnet/api/system.string)

Parsed resource string.

### \<a id="SuperOffice\_WebApi\_Data\_CultureDataFormatter\_ParseInlineMultiLanguageString\_System\_String\_System\_String\_System\_Int32\_">\</a> ParseInlineMultiLanguageString(string, string, int)

Parses the string for multilang strings and uses \<xref href="SuperOffice.WebApi.Data.CultureDataFormatter.ParseMultiLanguageString(System.String%2cSystem.String)" data-throw-if-not-resolved="false">\</xref>	to translate
the fragment to a culture specific string part

```csharp theme={null}
public static string ParseInlineMultiLanguageString(string multilangString, string cultureName, int startingIndex = 0)
```

#### Parameters

`multilangString` [string](https://learn.microsoft.com/dotnet/api/system.string)

The multilanguage string to parse: \<pre>\<code class="lang-csharp">US:"Location and size";GE:"Position und Größe";NO:"Posisjon og størrelse"\</code>\</pre>

`cultureName` [string](https://learn.microsoft.com/dotnet/api/system.string)

The cultureName, typically en-US, nb-NO, but also US, NO is accepted

`startingIndex` [int](https://learn.microsoft.com/dotnet/api/system.int32)

The starting index for the parsing

#### Returns

[string](https://learn.microsoft.com/dotnet/api/system.string)

All culture specific string parts translated, or original string if there is a problem

### \<a id="SuperOffice\_WebApi\_Data\_CultureDataFormatter\_ParseMultiLanguageString\_System\_String\_System\_String\_">\</a> ParseMultiLanguageString(string, string)

Returns the string part of the specified culture from the multi language string
These strings are typically used in SuperOffice list and description data
\<example>
String example from PrefDesc table:
US:"Location and size";GE:"Position und Größe";NO:"Posisjon og størrelse"
\</example>

```csharp theme={null}
public static string ParseMultiLanguageString(string multilangString, string cultureName)
```

#### Parameters

`multilangString` [string](https://learn.microsoft.com/dotnet/api/system.string)

The multilanguage string to parse: \<pre>\<code class="lang-csharp">US:"Location and size";GE:"Position und Größe";NO:"Posisjon og størrelse"\</code>\</pre>

`cultureName` [string](https://learn.microsoft.com/dotnet/api/system.string)

The cultureName, typically en-US, nb-NO, but also US, NO is accepted

#### Returns

[string](https://learn.microsoft.com/dotnet/api/system.string)

Culture specific string part, or original string if there is a problem

#### Remarks

This version will also accept strings that have non-multilanguage text before and after the multilanguage
block, and even multiple multilanguage blocks (provided there is at least one non-conforming character between them),
isolating them and parsing each one separately. Non-conforming text is kept in place in the output.

### \<a id="SuperOffice\_WebApi\_Data\_CultureDataFormatter\_StripColon\_System\_String\_">\</a> StripColon(string)

Strip a terminating colon from a string, and any whitespace

```csharp theme={null}
public static string StripColon(string label)
```

#### Parameters

`label` [string](https://learn.microsoft.com/dotnet/api/system.string)

String to process

#### Returns

[string](https://learn.microsoft.com/dotnet/api/system.string)

String, without colon and without leading/trailing whitespace

### \<a id="SuperOffice\_WebApi\_Data\_CultureDataFormatter\_StripCountrySpecificsFromLanguageName\_System\_String\_">\</a> StripCountrySpecificsFromLanguageName(string)

Converts "English (Zimbabwe)" into plain "English" by removing anything in parenthesis and stripping spaces.

```csharp theme={null}
public static string StripCountrySpecificsFromLanguageName(string languageName)
```

#### Parameters

`languageName` [string](https://learn.microsoft.com/dotnet/api/system.string)

Human readable language name: "Norsk (Bokmål)" or "Francaise"

#### Returns

[string](https://learn.microsoft.com/dotnet/api/system.string)

Simplified language name with initial capital: "Norsk" or "Francaise"

### \<a id="SuperOffice\_WebApi\_Data\_CultureDataFormatter\_StripTerminator\_System\_String\_System\_String\_">\</a> StripTerminator(string, string)

Strip a terminator from a string. Whitespace is first trimmed from both sides of the string,
the terminator is removed if present, and any whitespace now at the end of the string is also removed

```csharp theme={null}
public static string StripTerminator(string label, string terminator)
```

#### Parameters

`label` [string](https://learn.microsoft.com/dotnet/api/system.string)

String to process

`terminator` [string](https://learn.microsoft.com/dotnet/api/system.string)

Terminator to remove

#### Returns

[string](https://learn.microsoft.com/dotnet/api/system.string)

Original string minus terminator

### \<a id="SuperOffice\_WebApi\_Data\_CultureDataFormatter\_TryParse\_System\_String\_System\_Int32\_\_">\</a> TryParse(string, out int)

Try to parse a string as an encoded or bare InvariantCulture Integer32

```csharp theme={null}
public static bool TryParse(string encoded, out int result)
```

#### Parameters

`encoded` [string](https://learn.microsoft.com/dotnet/api/system.string)

String, either marked with \[I: ] or just an integer

`result` [int](https://learn.microsoft.com/dotnet/api/system.int32)

Int value, if return value is true; otherwise 0

#### Returns

[bool](https://learn.microsoft.com/dotnet/api/system.boolean)

true if parsing succeeded

### \<a id="SuperOffice\_WebApi\_Data\_CultureDataFormatter\_TryParse\_System\_String\_System\_Int32\_\_\_\_">\</a> TryParse(string, out int\[])

```csharp theme={null}
public static bool TryParse(string encodedIntArr, out int[] result)
```

#### Parameters

`encodedIntArr` [string](https://learn.microsoft.com/dotnet/api/system.string)

`result` [int](https://learn.microsoft.com/dotnet/api/system.int32)\[]

#### Returns

[bool](https://learn.microsoft.com/dotnet/api/system.boolean)

### \<a id="SuperOffice\_WebApi\_Data\_CultureDataFormatter\_TryParse\_System\_String\_System\_Double\_\_">\</a> TryParse(string, out double)

Try to parse a string as an encoded or bare InvariantCulture Double

```csharp theme={null}
public static bool TryParse(string encoded, out double result)
```

#### Parameters

`encoded` [string](https://learn.microsoft.com/dotnet/api/system.string)

String, either marked with \[F: ] or just a date

`result` [double](https://learn.microsoft.com/dotnet/api/system.double)

Double value, if return value is true; otherwise 0

#### Returns

[bool](https://learn.microsoft.com/dotnet/api/system.boolean)

true if parsing succeeded

### \<a id="SuperOffice\_WebApi\_Data\_CultureDataFormatter\_TryParse\_System\_String\_System\_DateTime\_\_">\</a> TryParse(string, out DateTime)

Try to parse a string as an encoded or bare InvariantCulture DateTime

```csharp theme={null}
public static bool TryParse(string encoded, out DateTime result)
```

#### Parameters

`encoded` [string](https://learn.microsoft.com/dotnet/api/system.string)

String, either marked with \[DT: ] or just a datetime

`result` [DateTime](https://learn.microsoft.com/dotnet/api/system.datetime)

DateTime value, if return value is true; otherwise \<xref href="System.DateTime.MinValue" data-throw-if-not-resolved="false">\</xref>

#### Returns

[bool](https://learn.microsoft.com/dotnet/api/system.boolean)

true if parsing succeeded


## Related topics

- [CultureDataFormatter](/en/api/localization/culture/culturedataformatter.md)
