Questions tagged [datepicker]

A datepicker is a user interface element in many frameworks that allows a user to choose a date and also, in some cases, time, often through a visual calendar.

Filter by
Sorted by
Tagged with
0
votes
0answers
11 views

Magento 2: Error Disable some dates in jquery Datepicker

I try to add datepicker in magento 2 checkout page like this: ko.bindingHandlers.datepicker = { init: function (element, valueAccessor, allBindingsAccessor) { var $el = $(...
0
votes
0answers
5 views

Wrong date saved field type date

I have this weird error that's saving the wrong date. The saved date is date -1 day (exemple, the selected date is 10/06/2020, but the saved date is 09/06/2020). My Magento 2 site is in French, but ...
0
votes
0answers
16 views

Magento 2.3: How to show a datepicker when clicking the custom shipping method?

I have created a custom shipping method and want to display a datepicker when I select the respective shipping method which I created. In order to show the datepicker, where I have to do the update?...
1
vote
0answers
35 views

Magento 2.3.4 Change date picker to 3 drop down dd/mm/yyyy

How to change Magento 2 date picker to 3 drop down which allows users to pick date month and year. Tried to follow this -> DOB Validation with three fields in magento2 But it didn't work and it wasn't ...
0
votes
1answer
60 views

Add clear button in frontend calendar button panel

I am trying to add a clear button in the jquery datetimepicker widget using the below code. define([ 'jquery', 'ko', 'Magento_Ui/js/form/element/abstract' ], function ($, ko, ...
1
vote
1answer
34 views

Mageno 2 - How to set width of input where I use DateTime picker

How to set the width of input where I use DateTime picker? There is a question, which I have reviewed, but it looks like there are no issues. Magento 2 - How to add the DateTime UI Component ...
0
votes
1answer
18 views

Datepicker calendar always show

I need to always show calendar popup in div below input with datepicker. There is my code <div class="field date"> <input type="text" name="datepicker" id="datepicker" value="" ...
4
votes
0answers
108 views

Using Custom JS for magento 2 KO datepicker in checkout page error required field

I tried to add a custom datepicker with custom js in my Magento 2 checkout for delivery date, the custom js datepicker is showing and when i click the date it fills the value, but when i click next to ...
1
vote
0answers
125 views

Magento 2.3.3 - Date format issue in admin area with different locale

I tried to edit the product special price date from admin with different locale and it showing issue with date format. It is working properly with en_US locale. When I switch the locale to nl_NL, ...
1
vote
1answer
68 views

Magento 2 How to disable html date input type in choosing future dates?

I am trying to disable future dates in my Magento custom modal. here is my script. I work perfectly fine in my html file. But when I apply it in Magento, it does not work. Can someone suggest a ...
0
votes
1answer
34 views

Change date format of date filter in all admin grids

I'm a magento newbie. My client asked us to change date format of date filter in all admin grids. He needs to change date format to display as dd/mm/yyyy. Can anyone help to solve this? Thanks in ...
0
votes
1answer
34 views

Is it possible to add date picker in checkout magento 2

I been trying to figure out how to add date picker in checkout. I can add date picker by plugin but I am not sure if that is correct way. I was expecting this to be done through knockout js but I ...
0
votes
0answers
23 views

get checkout value for new field Magento 2

I have created a field in Frontend which is a datepicker. I have used a plugin <type name="Magento\Checkout\Block\Checkout\LayoutProcessor"> <plugin name="date_picker" type="Module_Name\...
1
vote
0answers
25 views

Magento 2 how to add date of birth in checkout (date picker)

I want to add the date of birth date picker in checkout only for guest users. I have read a few things which indicate that I have to use knockoutjs. But I wasn’t sure what is the correct way to ...
0
votes
1answer
69 views

Magento 1 - Jquery datepicker error with merged JS

In magento 1 when merged javascript files is set to "yes" I encountered this error : When merged javascript files is set to "No" there was no problem with jquery datepicker. Do you have any idea ...
0
votes
2answers
703 views

Changing Default magento 2.3 datepicker format

The default Magento date-picker format for birth-date on create account page is mm/dd/yyyy. how can i change it into dd/mm/yyyy format in Magento 2.3
0
votes
0answers
480 views

Magento2.3.1: Date of birth validation issue on customer registration page

On Magento 2 Account registration page, When I create account and enter date of birth then it shows error that Please enter a valid date. I am selecting date with magento default date picker How do ...
0
votes
0answers
117 views

Datepicker not working on registration form in magento 2.3

This is my code for DOB on the registration form and its not working. It just displays a text box and not date picker. <?php $_dob = $block->getLayout()->createBlock('Magento\Customer\Block\...
0
votes
0answers
36 views

Datepicker on register form in magento 2.3

I want to add datepicker for selection of date of birth on customer account registration form. https://prnt.sc/orlaam I am using the default block <?php $_dob = $block->getLayout()->...
3
votes
2answers
404 views

Magento 2 When Add Date-picker On Frontend Custom Form

When i try to add date-picker on custom frontend form then give some Uncaught TypeError: Cannot read property 'call' of undefined at HTMLInputElement.$.datepicker._showDatepicker (calendar....
0
votes
2answers
440 views

Magento 2 how to restrict previous date in datepicker , for frontend detail page custom options

In Magento 2 how to restrict previous dates in datepicker ,in detail page customizable options, Please help me out on this .
0
votes
1answer
34 views

How to add a datepicker field in Shipping address step at Customized checkout?

In the checkout page, we have two of the options. First one is School and the second one is Private person. Customer can order via school option and as well as the private person. In both the option, ...
0
votes
1answer
32 views

How to add a custom field in customized checkout step?

I have referred the below link for adding a custom field in the checkout http://vagento.com/magento-2-add-custom-field-checkout-address-form/ It's working fine. How to do the same in a customized ...
4
votes
1answer
656 views

How to add datepicker field in Checkout?

I want to add a date picker field into the checkout page but I have no idea where to start. I have tried this Add date picker in checkout page but it's not working for me. We are having the below ...
0
votes
0answers
202 views

How can i only show date and month select box in calender(Magento 2)

I want my customer edit form calendar to be only date and month and no year and no week days name. This must include leap year as well if a user birthday is on 29th Feb and according to this current ...
0
votes
0answers
80 views

how to change getDateFormat() to only have date and month

So in my Customer edit form, I need to remove year , so on inspecting i found out the script code renders from vendor/magento/framework/View/Element/Html/Date.php code $html .= '<script type="...
1
vote
1answer
334 views

How to remove year dropdown from ui-datepicker Magento 2

How can i remove ui-datepicker-year from calender in Magento 2. I only want to make user select only date and month. How to achieve that. I have removed this line of code from jquery-ui.js if ( !...
2
votes
3answers
1k views

How to implement Time Range Picker in Magento 2 Admin system.xml?

I found one similar solution that almost does what I want. DateTimePicker System.xml I have implemented its code and was able to display a DateTime Picker in my admin configuration. However, I ...
2
votes
1answer
257 views

magento 2 custom calendar instead of core calendar

I want to create jalaali calendar (persian calendar) instead of magento core calendar for admin and front pages . for this purpose I've added these lines to my requirejs-config in my module : '...
1
vote
1answer
174 views

how to change magento 2 date.js form file

I want to change : magento/module-ui/view/base/web/js/form/element/date.js file and set my custom date file , for this purpose I've added this line to my requirejs-config in my module : 'map': { ...
3
votes
2answers
206 views

Disable date not working in magento 1.9 frontend

code: <script type="text/javascript"> // <![CDATA[ Calendar.setup({ inputField : 'shipping_arrival_date', ifFormat : '%m-%d-%Y', showsTime: false, button : 'shipping_arrival_date_trig', ...
1
vote
1answer
781 views

In magento 2 datepicker, how to disable a paritcular dates in frontend?

frontend 1.app/code/companyname/vendorname/view/frontend/web/template/delivery-date-block.html <label class="label">Delivery Date</label> <div class="control"> <input class="...
3
votes
1answer
423 views

Error Enter Valid date at cart price rule and save it db, after adding time in date picker in Magento 2.2.6

<?xml version="1.0" encoding="UTF-8"?> <form xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Ui:etc/ui_configuration.xsd"> ...
3
votes
1answer
507 views

How to add a date picker recursively in magento2 admin form

How to add a date picker recursively in backend ? System.xml <field id="mapping" translate="label comment tooltip" sortOrder="80" showInDefault="1" showInWebsite="1" showInStore="0"> ...
1
vote
1answer
744 views

Magento 2 UI Form datepicker, default date and strange behaviour

I created a UI Form with a datepicker field. In the XML I set required-entry to false. It keeps returning 'This is a required field'. In the XML the definition is thus: <field name="begin_datum"&...
0
votes
1answer
448 views

Magento 2 DateTime picker - Limit time selection range

I am using a datetimepicker on my frontend form with below code. I want to limit time selection between range 09:00 to 17:30 <input name="datetime_field" id="datetime_field" readonly title="...
1
vote
1answer
2k views

Validate Date range in backend from in magento 2

I have added datepicker in magento2 backend form using following code. protected function _prepareForm() { $fieldset->addField( 'date_started', 'date', [ 'name' ...
0
votes
1answer
873 views

How to implement Single Date and Time Picker in Magento 2

Reference to Magento documentation, I want to implement "Single Date and Time Picker" mentioned in Devdocs.
1
vote
1answer
195 views

Magento 1 datepicker issue selecting date for current month

This is my js code for my datepicker: Calendar.setup({ inputField : 'scheduled_ajax_update', ifFormat : '%d-%m-%Y', button : 'scheduled_ajax_update_trig', align : '...
0
votes
1answer
716 views

Magento 2.1 How to change member birthday date format

By default the date format is mm/dd/yyyy when new member register. How can I change the date format of birthday field to dd/mm/yyyy? I have tried to change locale to EN_UK, EN Canada, and also ...
0
votes
1answer
97 views

How to show time chooser in datepicker on magento configuration

I am trying to display time chooser in magento date picker but it didn't how up. can anyone please guide on this how to set timer in magento system confif. I have followed This Link but it show only ...
0
votes
0answers
335 views

Can't get datepicker value from custom checkout page

Im following this link to get datepicker value on my custom checkout page. Here is my code below. Test/Show/etc/events.xml <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:...
1
vote
1answer
1k views

Add date picker in checkout page

I tried to add date picker following this page. But when i open the checkout page, it's all just loading icon, and when i inspect the element, it's said error script on Test_Show/js/view/custom-...
2
votes
1answer
1k views

Magento 2 - Admin form datepicker not working in custom tab

I have a custom tab in admin customer account edit. I have two date fields but the datepicker is not working. Below is my code. <?php namespace Namespace\Modulename\Block\Adminhtml\Customer\Edit; ...
0
votes
1answer
566 views

Tried to implement the datetime picker magento2, but only date is coming

I have tried to implement datetime picker in Magento2, only date is coming, datetime picker is not appearing, $eavSetup->addAttribute( \Magento\Catalog\Model\Product::ENTITY, ...
5
votes
2answers
6k views

How to convert Date format in magento 2?

I am getting date from system config using datepicker date format is dd/mm/yy I want to convert it in to yy/mm/dd H:i:s and able to convert date in format: yy/mm/dd but time is not coming.
2
votes
0answers
782 views

Magento 2 Datepicker in checkout using knockout js

I need a datepicker for every product item that i have in checkout. Below is my code for js file: /** * Copyright © 2013-2017 Magento, Inc. All rights reserved. * See COPYING.txt for license details. ...
3
votes
1answer
1k views

Date Time picker and time zone woes

I've got a custom datetime attribute on a product that allows a date AND time to be selected. The field uses the Magento Date picker with the time fields available. If I select a date and a time, ...
0
votes
2answers
3k views

Datepicker Options in Knockout JS Binding is not working

In my HTML frontend form, I have included a date picker using Knockout JS data binding. But the date picker options is not loading. I want my date format should be like "02-Dec-1991". I gave my HTML ...
0
votes
1answer
2k views

Magento 2 : Add Date Picker in 24 Hour Format in Admin Form

I want to add date picker in admin form which display 24 hour format. Currently , I select date then it will display like 4/25/17 5:21 PM But I want to display like this 2017-04-25 17:21:00 How to ...