# date

## fromNow

Returns a future or a past date

**Parameters:**

| Name     | Type     | Description                                                                 |
| -------- | -------- | --------------------------------------------------------------------------- |
| `unit`   | `String` | Unit type. See <http://momentjs.com/docs/#/manipulating/add/>               |
| `value`  | `Number` | Number of minutes/days/months/etc to add or subtract from the current date. |
| `format` | `String` | Format string.                                                              |

**Returns:**

`String` - Date formatted according to the specified format string.

## now

Returns current date and time

See <http://momentjs.com/docs/#/displaying/format/> for supported format strings.

**Parameters:**

| Name     | Type     | Description    |
| -------- | -------- | -------------- |
| `format` | `String` | Format string. |

**Returns:**

`String` - Date formatted according to the specified format string.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.oxygenhq.org/download-installation-start/modules/module-date.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
