Date
Parameters (Blade)
| Key | Default value | Type | Available values | Description |
|---|---|---|---|---|
|
timestamp
|
string | - | The date, in date string format or in unix timestamp format. | |
|
time_since
|
false | boolean | - | Will return the date since. |
|
time_since_cap
|
6 months | string | - | How long back to spell out time since |
|
format
|
NULL | - | Present date's in this format. Default: D d M Y | |
|
region
|
en_US | string | - | Region for the date |
|
timezone
|
UTC | string | - | Timezone for the date |
|
action
|
formatDate | string | - | What to do with the inputted date: formatDate, timesince, timeuntil. Can be false to just output the timestamp. |
|
labels
|
[] | array | - | Array containing translations valid keys: year, month, week, day, hour, minute, second |
|
labelsPlural
|
[] | array | - | Array containing translations valid keys: year, month, week, day, hour, minute, second |
|
timeSinceSuffix
|
ago | string | - | Suffix for the time since label |
|
nowLabel
|
just now | string | - | What to show when the date is considered to be in the present |
|
timeNowCap
|
60 | integer | - | How many seconds back to show 'nowLabel' |
|
id
|
string | - | The DOM id of the component. | |
|
classList
|
[] | array | - | Array containing wrapping classes array |
|
attributeList
|
[] | array | - | Array containing keys and values rendered as attributes |