Lowcoder Documentation
  • Lowcoder overview
    • The "Hello World" walk
  • 🆕Setup and run
    • Cloud & Private Cloud
    • Self-hosting
      • Google Cloud Platform
      • Easypanel
      • Heroku
      • Raspberry Pi
      • Access local database or API
      • Update MongoDB Versions
      • Lowcoder Version Update
      • Traefik loadbalancer
      • SMTP Server
      • Migration from Openblocks
    • Security
  • 🏨Workspaces & Teamwork
    • Workspaces
      • SAAS Mode
      • Enterprise Mode
    • Members and Groups
    • Permissions for Resources
    • OAuth
      • KeyCloak
      • Google
      • GitHub
      • Generic OAuth Provider
    • Query library
    • Lowcoder Marketplace
  • ✨Build Applications
    • Create a new App
      • App(s) Navigation
      • Modules
      • Version and Release Management
    • App Editor
      • Query & Editing Roundtrips
      • Bulk Editing
      • Keyboard shortcuts
      • Data selection & Javascript
      • Layers
      • Visual Components
        • Common Component Settings
        • Messages / Toast
        • Dashboard & Reporting
          • Table
          • Charts and graphs
            • Bar Chart
            • Line Chart
            • Pie Chart
            • Scatter Chart
            • CandleStick Chart
            • Funnel Chart
            • Gauge Chart
            • Graph Chart
            • Heatmap Chart
            • Radar Chart
            • Sankey Chart
            • Suburst Chart
            • Theme River Chart
            • Tree Chart
            • Treemap Chart
            • Mermaid Chart
          • Google Maps
        • Layout & Navigation
          • List View
          • Drawer
          • Modal
          • Navigation
          • Cascader
          • Tree / Tree Select
          • Link
          • Floating Button
          • Text
          • Step Control
          • Page Layout
          • Content Card
          • Tabbed Container
        • Data Collection & Forms
          • Form
          • Input Field Types
          • JSON Schema Form
        • Meeting & Collaboration
        • Project Management
        • Calendar & Scheduling
          • Calendar
          • Date & Date Range
          • Time & Time Range
        • Document & File Management
          • File upload
        • Item & Signature Handling
        • Multimedia & Animation
          • Image
        • Integration & Extension
        • Legacy & Deprecated
      • Option lists
      • Date handling
      • Use Markdown
    • App Interaction
      • Event handlers
    • Themes & Styling
      • Design an efficient and user-friendly form
      • Customize Styles
      • Component Styling Possibilities
    • Video Calls in Lowcoder
  • 🚀Connect your Data
    • Data source basics
      • Configure IP allowlists
    • Data sources in Lowcoder
      • APIs as Datasource
        • REST API
        • GraphQL
        • Google Sheets
      • SQL Databases
        • MySQL
        • MariaDB
        • Supabase
          • Supabase PostgreSQL
          • Supabase Assets API
          • Supabase RealTime
          • Supabase OAuth
        • PostgreSQL
        • Microsoft SQL Server
        • Oracle
      • NoSQL Databases
        • MongoDB
        • CouchDB
        • DynamoDB
      • InMemory Databases
        • Redis
      • File Storages
        • S3 File Storage
      • BigData & OLAP
        • Big Query
        • Snowflake
        • ClickHouse
        • Elasticsearch
      • Websocket Datasource
    • Query basics
      • Bind Query Data to Components
      • Query library
  • 🪄Workflows
    • n8n Integration
  • 💫Business Logic in Apps
    • Write JavaScript
      • JavaScript query
      • Temporary state
      • Transformers
      • Data responder
      • Built-in JS functions
  • 🙌Publish Apps
    • Share an App
    • Publish an App
    • Embed an App
      • Embed App in HTML Pages
      • Embed App in WordPress Pages
      • Embed Apps in React
      • Embed Apps in NEXT.JS
      • Native embed SDK
        • Build the SDK from Source
  • 🔥Lowcoder Extension
    • Opensource Contribution
      • Develop UI components for Apps
      • Develop Data Source Plugins
    • Use third-party libraries in Apps
      • Day.js Date handling
      • Import your own JavaScript Library
    • Custom component
    • Lowcoder Open REST API
  • Lowcoder for Enterprise
    • Custom branding
Powered by GitBook
LogoLogo

More to try...

  • Lowcoder Website
  • Free Cloud Platform
  • Github
  • Discord

© Lowcoder Software LTD

On this page
  • 📅 Date & Date Range Components in Lowcoder
  • 📆 Date Component
  • 📅📅 Date Range Component
  • 🔗 Additional Resources
  • Properties of the Date & Date Range Components

Was this helpful?

  1. Build Applications
  2. App Editor
  3. Visual Components
  4. Calendar & Scheduling

Date & Date Range

📅 Date & Date Range Components in Lowcoder

Lowcoder offers intuitive and customisable components for date selection, enabling users to seamlessly incorporate date inputs into their applications.

📆 Date Component

The Date component allows users to select a single date from a calendar interface.

🔧 Key Features

  • User-Friendly Interface: Provides a calendar pop-up for easy date selectin.

  • Customizable Format: Supports various date formats to match application requiremens.

  • Data Binding: Easily bind the selected date to other components or queries within the ap.

  • Event Handling: Trigger actions based on user interactions, such as date selection changs.

🛠 Configuration Options

  • Default Date: Set an initial date vaue.

  • Minimum and Maximum Dates: Restrict selectable dates within a specific rage.

  • Disabled Dates: Specify dates that should be unselectale.

  • Placeholder Text: Provide guidance when no date is seleced.

⚙️ Integration Tips

  • Formatting: Utilize Day.js, which is integrated into Lowcoder, for date formatting and manipulation. For examle:

    {{ dayjs(date1.value).format('YYYY-MM-DD') }}
  • Event Handling: Use event handlers to perform actions when the date value chanes.

Components Playground

On Component Playground, you can interact with the Date component and explore it's Properties, Events and Methods. Play with different Styling properties to see the effect on the Date component.

Components Auto-Docs

In the Auto-Docs of Date component, we have shown how to use different properties of the Date component. It also includes the Styling properties of the Date component.

📅📅 Date Range Component

The Date Range component enables users to select a start and end date, facilitating the selection of a date interval.

🔧 Key Features

  • Dual Date Selection: Allows selection of both start and end dates.

  • Preset Ranges: Optionally provide quick selection options like "Last 7 Days" or "This month".

  • Data Binding: Bind the selected date range to other components or queries.

  • Event Handling: Trigger actions based on changes to the selected date range.

🛠 Configuration Options

  • Default Range: Set initial start and end dates.

  • Minimum and Maximum Dates: Define the allowable range for selection.

  • Disabled Dates: Specify dates that should be unselectable within the range.

  • Separator: Customize the separator between start and end dates in the display.

⚙️ Integration Tips

  • Formating: Use Day.js for formatting both start and end dates. For example:

    {{ dayjs(dateRange1.value[0]).format('YYYY-MM-DD') }} to {{ dayjs(dateRange1.value[1]).format('YYYY-MM-DD') }}
  • Event Handing: Implement event handlers to respond to changes in the selected date range.

Components Playground

On Component Playground, you can interact with the Date Range component and explore it's Properties, Events and Methods. Play with different Styling properties to see the effect on the Date Range component.

Components Auto-Docs

In the Auto-Docs of Date Range component, we have shown how to use different properties of the Date Range component. It also includes the Styling properties of the Date Range component.

🔗 Additional Resources

Properties of the Date & Date Range Components

These properties are accessible in {{ }} notations, as well as in JavaScript Queries.

Property Name
Type
Description

value

String

Returns the String containing Date value of the Date component

hidden

Boolean

Returns True or False based on whether the component is hidden or not

disabled

Boolean

Returns True or False based on whether the component is disabled or not

invalid

Boolean

Returns True or False based on whether the component is valid or not

formattedValue

String

Returns the String containing Full Date value ( Date + Time + Time Zone offset ) of the Component

timestamp

String

Returns the Timestamp value of the Date component

timeZone

Object

Returns TimeZone object, which contains the Name, Offset and TimeZone properties for the Component

start

String

Returns the String containing the Start Date value of the Date Range component

end

String

Returns the String containing the End Date value of the Date Range component

startTimestamp

String

Returns the String containing the Start Timestamp value of the Date Range component

endTimestamp

String

Returns the String containing the End Timestamp value of the Date Range component

formattedStartValue

String

Returns the String containing Full Start Date value ( Date + Time + Time Zone offset ) of the Date Range Component

formattedEndValue

String

Returns the String containing Full End Date value ( Date + Time + Time Zone offset ) of the Date Range Component

Events

Events give you the ability to trigger further actions (with Event-Handlers).

Event Name
Description

Change

Triggers, when a User make any"changes" to the Component

Focus

Triggers, when a User "Clicks" on the Component

Blur

Triggers, when a User Clicks outside of the Component i.e, defocuses the component.

Methods

You have the capability to engage with components via their respective methods, which can be accessed by their designated names within any segment where JavaScript is utilized. Additionally, these components can be activated through the 'Control Component' action, which is triggered in response to specific events.

setValue():

date1.setValue() method sets the Date's Value property, which gets selected in the Date component.

date1.setValue("2026-05-05");

clearValue() :

date1.clearValue() clears the Date's Value property and empties the selected value from the Date component.

date1.clearValue();

resetValue() :

date1.resetValue() method resets the Date's value property to the default value of the Date component.

date1.resetValue();

setDefaultValue():

date1.setDefaultValue() method sets the Date's DefaultValue property, which gets selected as default in the Date component.

date1.setDefaultValue("2026-05-05");

clearDefaultValue() :

date1.clearDefaultValue() clears the Date's DefaultValue property and empties the default value from the Date component.

date1.clearDefaultValue();

resetDefaultValue() :

date1.resetDefaultValue() method resets the Date's Default value property to the default value of the Date component.

date1.resetDefaultValue();

setUserTimeZone() :

date1.setUserTimeZone() method sets the Date's TimeZone object property, which sets the TimeZone of the Date component.

date1.setUserTimeZone({
  Name: "GMT+5",
  Offset: "+05:00",
  TimeZone: "Asia/Karachi",
});

clearUserTimeZone() :

date1.clearUserTimeZone() clears the Date's TimeZone object property and empties the selected/current value of the TimeZone property from the Date component.

date1.clearUserTimeZone();

resetUserTimeZone() :

date1.resetUserTimeZone() method resets the Date's TimeZone object property to the default value of the TimeZone property of the Date component.

date1.resetUserTimeZone();

setStart() :

dateRange1.setStart() method sets the Date Range's Start Value property, which sets the Start date of the Date Range component.

dateRange1.setStart("2025-01-01");

clearStart() :

dateRange1.clearStart() clears the Date Range's Start Value property and empties the Start Date value from the Date Range component.

dateRange1.clearStart();

resetStart() :

dateRange1.resetStart() method resets the Date Range's Start value property to the default Start value of the Date Range component.

dateRange1.resetStart();

setEnd() :

dateRange1.setEnd() method sets the Date Range's End Value property, which sets the End date of the Date Range component.

dateRange1.setEnd("2025-01-01");

clearEnd() :

dateRange1.clearEnd() clears the Date Range's End Value property and empties the End Date value from the Date Range component.

dateRange1.clearEnd();

resetEnd() :

dateRange1.resetEnd() method resets the Date Range's End value property to the default End value of the Date Range component.

dateRange1.resetEnd();

setRange() :

dateRange1.setRange() method sets the Range of the Date Range component, i.e, it sets the Start and End dates of the Date Range component.

dateRange1.setRange("2025-01-01","2025-12-31");

setDefaultStart() :

dateRange1.setDefaultStart() method sets the Date Range's DefaultStart Value property, which sets the Default Start date of the Date Range component.

dateRange1.setDefaultStart("2025-01-01");

clearDefaultStart() :

dateRange1.clearDefaultStart() clears the Date Range's DefaultStart Value property and empties the Default Start Date value from the Date Range component.

dateRange1.clearDefaultStart();

resetDefaultStart() :

dateRange1.resetDefaultStart() method resets the Date Range's DefaultStart value property to the default Start value of the Date Range component.

dateRange1.resetDefaultStart();

setDefaultEnd() :

dateRange1.setDefaultEnd() method sets the Date Range's DefaultEnd Value property, which sets the Default End date of the Date Range component.

dateRange1.setDefaultEnd("2025-01-01");

clearDefaultEnd() :

dateRange1.clearDefaultEnd() clears the Date Range's DefaultEnd Value property and empties the Default End Date value from the Date Range component.

dateRange1.clearDefaultEnd();

resetDefaultEnd() :

dateRange1.resetDefaultEnd() method resets the Date Range's DefaultEnd value property to the default End value of the Date Range component.

dateRange1.resetDefaultEnd();

clearAll() :

dateRange1.clearAll() clears all the Properties of the Date Range component.

dateRange1.clearAll();

resetAll() :

dateRange1.resetAll() reset all the Properties of the Date Range component.

dateRange1.resetAll();

setUserRangeTimeZone() :

date1.setUserRangeTimeZone() method sets the Date Range's TimeZone object property, which sets the TimeZone of the Date Range component.

dateRange1.setUserRangeTimeZone({
  Name: "GMT+5",
  Offset: "+05:00",
  TimeZone: "Asia/Karachi",
});

clearUserRangeTimeZone() :

date1.clearUserRangeTimeZone() clears the Date Range's TimeZone object property and empties the selected/current value of the TimeZone property from the Date Range component.

dateRange1.clearUserRangeTimeZone();

resetUserRangeTimeZone() :

date1.resetUserRangeTimeZone() method resets the Date's TimeZone object property to the default value of the TimeZone property of the Date Range component.

dateRange1.resetUserRangeTimeZone();
PreviousCalendarNextTime & Time Range

Last updated 21 days ago

Was this helpful?

Day.js Documentation: For advanced date manipulation and formatting, refer to the .

✨
Day.js Documentation
Lowcoder | rapid App & VideoMeeting builder for everyone.
Lowcoder | rapid App & VideoMeeting builder for everyone.
Lowcoder | rapid App & VideoMeeting builder for everyone.
Lowcoder | rapid App & VideoMeeting builder for everyone.