Description
formatDate is a function to format Date from timestamp to date string.
Syntax
invincible.formatDate(timestamp, format)
Params
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
| timestamp | Number | true | A number of timestamp | |
| format | String | ‘YYYY-MM-DD hh:mm:ss’ | The format string |
Return
| Type | Description |
|---|---|
| String | Return the result of format |
Examples
|