---
title: "millisToDate"
canonical: "https://support.appfire.com/space/PSCONF/15303243/millisToDate"
format: markdown
---
> Macro (aura-html)

> Macro (table-plus)
> 
> |  |  |  |  |
> | --- | --- | --- | --- |
> | **Syntax** | millisToDate(millis) | **Package** |  |
> | **Alias** |  | **Pkg Usage** |  |

## Description

> Macro (excerpt)
> 
> Converts milliseconds to a date.

Converts milliseconds to a date.

## Parameters

> Macro (table-plus)
> 
> | Parameter name | Type | Required | Description |
> | --- | --- | --- | --- |
> | millis | Number | Yes | Specifies the milliseconds to convert. |

## Return Type

**Date**

## Example

```javascript
return millisToDate(1370616623112);
```

Outputs: 2013-06-07 17:50:23

## See also

> Macro (contentbylabel)