Full-featured jQueryUI Datepicker Plugin | RendezVous.js

RendezVous.js is a simple jQuery date picker plugin that allows you to select a date from the monthly calendar with many customization options.

jquery datepicker example, jquery ui datepicker, jquery date range picker, jquery datepicker format, jquery datepicker cdn

Angular Material Date Picker With Range Selection | saturn-datepicker

How to make use of it:

1. Load the jQuery rendezVous.js CSS file in the header section of the web page.

<link href="rendezvous.css" rel="stylesheet">

2. Load the jQuery library and jQuery rendezVous.js plugin script.

<script src="//ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
<script src="rendezvous.js"></script>

3. Create an empty DIV element with a unique ID.

<div id="demo"></div>

4. Call the plugin on the DIV element to turn it into a date entry that shows the date picker when focus/clicked.

$('demo').RendezVous(//OPTIONS);

5. Available options and defaults.

// If false, the datepicker can be only closed by calling "close();"
canClose: true,

// If true, the date input will be split in day, month and year inputs
splitInput: false,

// If true, the date input will be split in day, month and year inputs
splitInput: false,

// If false, input content can be edited
inputReadOnly: true,

// If false, input will contains the default date by default
inputEmptyByDefault: true,

// Separator between inputs (for splitted input)
inputSeparator: ' / ',

// Default scale at which the datepicker opens
// month, year, decade
defaultScale: 'month', 

// Input formats
/**
* Available formats
*
* DAYS
* %d   : Numeric day (e.g. 2)
* %D   : Numeric day with leading zeros (e.g. 02)
* %da  : Textual day abbreviation (e.g mon)
* %Da  : Textual capitalized day abbreviation (e.g Mon)
* %day : Textual day (e.g monday)
* %Day : Textual capitalized day (e.g Monday)
*
* MONTHS
* %m: Numeric month (e.g. 1)
* %M: Numeric month with leading zeros (e.g. 01)
* %mo    : Textual month abbreviation (e.g jan)
* %Mo    : Textual capitalized month abbreviation (e.g Jan)
* %month : Textual month (e.g january)
* %Month : Textual capitalized month (e.g January)
*
* YEARS
* %y: Numeric year, 2 digits (e.g 15)
* %Y: Numeric year, 4 digits (e.g 2015)
*/
formats: {
  display: {

    // day input (for splitted input)
    day:   '%D',  

    // month input (for splitted input)
    month: '%Month',  

    // year input (for splitted input)
    year:  '%Y',  

    // date input
    date:  '%D %Month %Y' 
  }
},

// Default selected date
defaultDate: {
  day:   today.getDate(),    // 1 through 31
  month: today.getMonth(),   // 0 through 11
  year:  today.getFullYear() // No limits
},

// Current language
i18n: { /* ... */ }

6. API.

$('#demo').RendezVous(function(rdv) {

// To open the datepicker
rdv.open();

// To close the datepicker
rdv.close();

// To set the day of the datepicker
rdv.setDay(day); // 1 through 31

// To get the day of the datepicker
rdv.getDay();

// To set the month of the datepicker
rdv.setMonth(month); // 1 through 12

// To get the month of the datepicker
rdv.getMonth();

// To set the year of the datepicker
rdv.setYear(year); // No limits

// To get the year of the datepicker
rdv.getYear();

// To set the date of the datepicker
// (combination of the 3 previous)
rdv.setDate(day, month, year);

// To get the date of the datepicker (Date object)
rdv.getDate();

// To set the date to the previous day
rdv.previousDay();

// To set the date to the next day
rdv.nextDay();

// To set the date to the previous month
rdv.previousMonth();

// To set the date to the next month
rdv.nextMonth();

// To set the date to the previous year
rdv.previousYear();

// To set the date to the next year
rdv.nextYear();

// To set the scale of the datepicker
rdv.setScale(scale); // month, year, decade

// To get the current scale of the datepicker
rdv.getScale();

});

Full-featured jQuery Date Picker Plugin, RendezVous.js Github


See Demo And Download

Official Website(Julien-Marcou): Click Here

This superior jQuery/javascript plugin is developed by Julien-Marcou. For extra Advanced usage, please go to the official website.

Related Posts

VenoBox-Responsive-jQuery-Lightbox-Plugin

Responsive Image Gallery Lightbox jQuery Plugin | VenoBox

VenoBox is a responsive jQuery modal window plugin suitable for images, embedded content, iFrames, Google Maps, Vimeo, and YouTube videos. The big difference compared to many other…

bootstrap-dropdown-on-hover

[Animation] Bootstrap Multi-Level Responsive Dropdown Menu

Bootstrap-based multi-level dropdown navigation menu with cool animations. The dropdown on Hover is a jQuery plugin used to create Bootstrap multi-level scroll-triggered dropdown menus with CSS3 animations…

Google-Translate-Dropdown-Customize-With-Country-Flag

Google Translate Dropdown Customize With Country Flag | GT API

Flag google translates jQuery text that takes advantage of the Google Cloud Translation API to translate web content between languages by selecting a country from the dropdown…

Bootstrap-Fileinput

HTML 5 File Input Optimized for Bootstrap 4.x./3.x with File Preview | Bootstrap Fileinput

bootstrap-fileinput is an improved HTML 5 file input  Bootstrap 5.x, 4.x and 3.x with file preview for different files, provides multiple selections, resumable section uploads, and more….

HStack-and-VStack-in-CSS

CSS Layout Components Horizontal/Vertical Stack | HStack and VStack

HStack and VStack in CSS – CSS layout components that (basically) stack anything horizontally and vertically. A pure CSS library that makes it easy to stack elements…

Floating-Whatsapp-Chat-Button

How to Add Floating Whatsapp Chat Button In HTML | venom-button

Venom Button is a very simple plugin for the jQuery floating WhatsApp button. Adds a floating button to your site that calls WhatsApp Click to Chat API. It will automatically start the WhatsApp…

Leave a Reply

Your email address will not be published. Required fields are marked *