QuickDEV
  • ▶️Quick start
    • 🔃Overview
    • 🔑Security
  • 🎭Users management
    • 👨‍👩‍👦‍👦Members and groups
    • 🔐Permission for resources
  • 🖥️Applications
    • ➕Create applications
      • ⤴️Create application/module
      • 🔲Module
      • ✅Version and Release Management
    • 🎨Application editor
      • 👁️‍🗨️Visual components
        • ⚙️Common component settings
        • ⬆️File upload
        • 📊Charts and graphs
        • 🌄Image
        • 📋Option lists
        • 📑List view
        • ⬜Drawer
        • 🗺️Google maps
        • 📩Messages / Toast
        • 📅Calendar
        • Custom component
      • #️⃣Use markdown
      • ⌨️Keyboard shortcuts
    • 🔗Navigation
    • ⏯️Actions editor
      • ⏱️Date handling
      • 🟰Data selection & JavaScript
      • ⚡Event handlers
      • 🔎JavaScript Query
      • ✖️Dynamic variable
      • 💱Transformers
      • 🧮Data responder
      • ↕️Built-in JS functions
      • 📚Third-party libraries
    • 🖌️Styling
      • 📝Themes
      • 🖍️Customize styles
  • 🚀Database & API
    • 🔎Queries
    • 🧰Query repository
    • 📡Datasources
      • 🌎API
        • 1️REST API
        • 2️GraphQL
        • 3️Google Sheets
      • 🟠SQL Databases
        • 1️Oracle
        • 2️Microsoft SQL Server
        • 3️MySQL
        • 4️PostgreSQL
        • 5️MariaDB
      • 🟡NoSQL Databases
        • 1️MongoDB
        • 2️CouchDB
        • 3️DynamoDB
      • 🔴REDIS
      • 🟢BigData & OLAP
        • 1️Big Query
        • 2️Snowflake
        • 3️ClickHouse
        • 4️Elasticsearch
      • 🌐WebSocket
  • 💻Integrations
    • 1️ANGULAR
    • 2️HTML Pages
Powered by GitBook
On this page
  1. Applications
  2. Actions editor

Date handling

PreviousActions editorNextData selection & JavaScript

Last updated 1 year ago

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.

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.

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')}}
🖥️
⏯️
⏱️
Check dayjs documentation