Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
mskocik authored Jul 23, 2022
1 parent 474de6f commit bca6a98
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ Try yourself in [REPL](https://svelte.dev/repl/98fd362aad6049f4b38606820baff0b0?
## 📓 Options

| Property | Type | Default | Description |
|-----------------|--------------|---------------| ------------------|
|-----------------|--------------|---------------|-------------------|
| name | `string` | `date` | html attribute for underlying `<input>` element |
| disabled | `bool` | `false` | html attribute for underlying `<input>` element |
| placeholder | `string` | `null` | html attribute for underlying `<input>` element |
Expand Down Expand Up @@ -82,7 +82,8 @@ Date format can be defined under `formatType` property. It has two options: `sta
`standard` is the _default_.

#### `standard` format settings:
| Format | Description |

| Format | Description | Example
|--------|----------------------------------------------------------------------------------|--------------------------------------
| `d` | day of the month without leading zeros | 1 to 31
| `dd` | day of the month, 2 digits with leading zeros | 01 to 31
Expand All @@ -105,11 +106,11 @@ Date format can be defined under `formatType` property. It has two options: `sta
| `ss` | alias for `s` | 00
| `p` | meridian in lower case ('am' or 'pm') - according to locale file (i18n.meridiem) | am or pm
| `P` | meridian in upper case ('AM' or 'PM') - according to locale file (i18n.meridiem) | AM or PM
| `t` | timestamp in milliseconds (although milliseconds are always 0). For timestamp in seconds use `php` format |
| `t` | timestamp in milliseconds (although milliseconds are always 0). For timestamp in seconds use `php` format | |

#### `php` format settings:

| Char | Description | Example
| Format | Description | Example
|------|---------------------------------------------------------------------|--------------------------------------
| `d` | Day of the month, 2 digits with leading zeros | 01 to 31
| `D` | A textual representation of a day, three letters | Mon through Sun
Expand Down

0 comments on commit bca6a98

Please sign in to comment.