# Date handling

Day.js is a lightweight JavaScript library created for parsing, validating, manipulating, and formatting dates and times. It's crafted to be a simpler and more compact alternative to Moment.js.

This library seamlessly integrates into QuickDEV, enabling immediate utilization for date and time operations by creating Day.js objects with the `dayjs()` function. Supporting various formats like strings, Date objects, and UNIX timestamps, it facilitates flexible manipulation such as time addition or subtraction, date formatting, and date comparison. [Check dayjs documentation](https://day.js.org/docs/en/get-set/get)

Developers have the capability to enrich Day.js's functionality through its plugin system, facilitating the integration of additional features that exceed the core library's capabilities.

Day.js Plugins are applicable across all sections in QuickDEV that support `{{ }}` Handlebar notation.

```javascript
Quarter: {{dayjs().format('Q')}}
Day of Month with ordinal: {{dayjs().format('Do')}}
Week of year: {{dayjs().format('w')}}
{{dayjs('2015-09-16 09:55').tz('Asia/Taipei')}}
```


---

# 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.quickdev.cloud/applications/actions-editor/date-handling.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.
