# DateFormat.BooleanAttribute

Added in[API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

# BooleanAttribute

*** ** * ** ***

Kotlin\|[Java](https://developer.android.com/reference/android/icu/text/DateFormat.BooleanAttribute "View this page in Java")  

```
class BooleanAttribute
```

|---|---|----------------------------------------------------------------------------------------------------------------------------------------------|
| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)                                                                  |||
| ↳ | [kotlin.Enum](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-enum/index.html)\<[android.icu.text.DateFormat.BooleanAttribute](https://developer.android.com/reference/kotlin/android/icu/text/DateFormat.BooleanAttribute#)\> ||
|   | ↳ | [android.icu.text.DateFormat.BooleanAttribute](https://developer.android.com/reference/kotlin/android/icu/text/DateFormat.BooleanAttribute#) |

|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| Known Direct Subclasses [DateFormat.BooleanAttribute.PARSE_ALLOW_NUMERIC](https://developer.android.com/reference/kotlin/android/icu/text/DateFormat.BooleanAttribute#ENUM_VALUE:PARSE_ALLOW_NUMERIC),[DateFormat.BooleanAttribute.PARSE_ALLOW_WHITESPACE](https://developer.android.com/reference/kotlin/android/icu/text/DateFormat.BooleanAttribute#ENUM_VALUE:PARSE_ALLOW_WHITESPACE),[DateFormat.BooleanAttribute.PARSE_MULTIPLE_PATTERNS_FOR_MATCH](https://developer.android.com/reference/kotlin/android/icu/text/DateFormat.BooleanAttribute#ENUM_VALUE:PARSE_MULTIPLE_PATTERNS_FOR_MATCH),[DateFormat.BooleanAttribute.PARSE_PARTIAL_LITERAL_MATCH](https://developer.android.com/reference/kotlin/android/icu/text/DateFormat.BooleanAttribute#ENUM_VALUE:PARSE_PARTIAL_LITERAL_MATCH) |-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------| | [DateFormat.BooleanAttribute.PARSE_ALLOW_NUMERIC](https://developer.android.com/reference/kotlin/android/icu/text/DateFormat.BooleanAttribute#ENUM_VALUE:PARSE_ALLOW_NUMERIC)                             | indicates tolerance of numeric data when String data may be assumed.                     | | [DateFormat.BooleanAttribute.PARSE_ALLOW_WHITESPACE](https://developer.android.com/reference/kotlin/android/icu/text/DateFormat.BooleanAttribute#ENUM_VALUE:PARSE_ALLOW_WHITESPACE)                       | indicates whitespace tolerance.                                                          | | [DateFormat.BooleanAttribute.PARSE_MULTIPLE_PATTERNS_FOR_MATCH](https://developer.android.com/reference/kotlin/android/icu/text/DateFormat.BooleanAttribute#ENUM_VALUE:PARSE_MULTIPLE_PATTERNS_FOR_MATCH) | indicates tolerance of pattern mismatch between input data and specified format pattern. | | [DateFormat.BooleanAttribute.PARSE_PARTIAL_LITERAL_MATCH](https://developer.android.com/reference/kotlin/android/icu/text/DateFormat.BooleanAttribute#ENUM_VALUE:PARSE_PARTIAL_LITERAL_MATCH)             | indicates tolerance of a partial literal match e.                                        | |

boolean attributes

## Summary

|                                                                                                                                Enum values                                                                                                                                ||
|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|
| [PARSE_ALLOW_NUMERIC](https://developer.android.com/reference/kotlin/android/icu/text/DateFormat.BooleanAttribute#ENUM_VALUE:PARSE_ALLOW_NUMERIC) indicates tolerance of numeric data when String data may be assumed.                                                 |
| [PARSE_ALLOW_WHITESPACE](https://developer.android.com/reference/kotlin/android/icu/text/DateFormat.BooleanAttribute#ENUM_VALUE:PARSE_ALLOW_WHITESPACE) indicates whitespace tolerance.                                                                                |
| [PARSE_MULTIPLE_PATTERNS_FOR_MATCH](https://developer.android.com/reference/kotlin/android/icu/text/DateFormat.BooleanAttribute#ENUM_VALUE:PARSE_MULTIPLE_PATTERNS_FOR_MATCH) indicates tolerance of pattern mismatch between input data and specified format pattern. |
| [PARSE_PARTIAL_LITERAL_MATCH](https://developer.android.com/reference/kotlin/android/icu/text/DateFormat.BooleanAttribute#ENUM_VALUE:PARSE_PARTIAL_LITERAL_MATCH) indicates tolerance of a partial literal match e.                                                    |

## Enum values

### PARSE_ALLOW_NUMERIC

Added in[API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
enum val PARSE_ALLOW_NUMERIC : DateFormat.BooleanAttribute
```

indicates tolerance of numeric data when String data may be assumed. e.g. YEAR_NAME_FIELD  

### PARSE_ALLOW_WHITESPACE

Added in[API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
enum val PARSE_ALLOW_WHITESPACE : DateFormat.BooleanAttribute
```

indicates whitespace tolerance. Also included is trailing dot tolerance.  

### PARSE_MULTIPLE_PATTERNS_FOR_MATCH

Added in[API level 26](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
enum val PARSE_MULTIPLE_PATTERNS_FOR_MATCH : DateFormat.BooleanAttribute
```

indicates tolerance of pattern mismatch between input data and specified format pattern. e.g. accepting "September" for a month pattern of MMM ("Sep")  

### PARSE_PARTIAL_LITERAL_MATCH

Added in[API level 26](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
enum val PARSE_PARTIAL_LITERAL_MATCH : DateFormat.BooleanAttribute
```

indicates tolerance of a partial literal match e.g. accepting "--mon-02-march-2011" for a pattern of "'--: 'EEE-WW-MMMM-yyyy"