# Date `[Shared]`

Date is a powerful module to manage dates in your scripts.

## JO Functions

### jo.date.convertMsToInterval()

A function to convert a time in ms to a readable string <br>

#### Syntax

```lua
jo.date.convertMsToInterval(ms, lang)
```

#### Parameters

`ms` : _integer_
> The duration in ms
>

`lang` : _table_ `[Optional]`

> The list of translatable strings <br> Use `false` to disable
>

> `lang.ms` : _string_ - "ms"
> 
> `lang.s` : _string_ - "s"
> 
> `lang.h` : _string_ - "h"
> 
> `lang.d` : _string_ - "d"
> 
> `lang.s` : _string_ - "s"
> 

---

### jo.date.now()

A function to get the current time <br>

#### Syntax

```lua
jo.date.now()
```

#### Return Value

Type : _integer_

> The current time in ms
