Questions tagged [datetimepicker]

The DateAndTimeSelector is a customized user interface element that empowers users to conveniently pick both a date and a time, while also offering the flexibility to display it with a personally tailored format of their choice.

When using the DateTimePicker component in MUI with React, the displayed value may not always match the value that

When passing a value to the DateTimePicker component from '@mui/x-date-pickers/DateTimePicker, the displayed value sometimes shows a discrepancy of +2 hours or +1 hour. This issue may be related to timezones. For example: The value being passed: 'Mon Sep ...

Having trouble getting the jquery ui datetimepicker to function properly in my node.js application using ejs and express

I am currently trying to implement the functionality found at this link: Below is an excerpt of my code: <html> <head> <script src="http://trentrichardson.com/examples/timepicker/js/jquery-1.7.1.min.js"> </script> < ...

Transforming the current date() into a distinctive format, encompassing the utilization of T

Background In my Angular UI, I have a datepicker that is defined as: <date-picker name="contractEndDate" date="employee.contractEndDate"></date-picker> When the button is clicked, the contractEndDate value changes from null to the current da ...

6 Ionic date-time selector

I seem to be encountering some challenges while using Ionic 6 with the new date-time picker. The issue arises when I retrieve a value from the database through a nest service. In the database, the date appears as: “2022-06-30 13:11:54” but upon retriev ...

Customize the position of the Datetimepicker

Is there a way to customize the position of the datetimepicker, ensuring that it stays within the visual boundaries without getting cut off? I need help with this. ...

Prevent selection of past dates and times in ng-bootstrap calendar in Angular 7

HTML <ngb-datepicker (select)="onDateSelect($event)" [(ngModel)]="datePickerModel"></ngb-datepicker> <ngb-timepicker [meridian]="meridian" [(ngModel)]="time" class="fromTimePick"> </ngb-timepicker> Is it possible to restrict the ...

Customize the InputFormat of the MUI DateTimePicker

I am trying to implement a custom InputFormat in the following manner 2018-01-05 13:08:00 This is an example code snippet <LocalizationProvider dateAdapter={AdapterDayjs}> <DateTimePicker renderInput={(props) => <TextField {... ...

How can I customize the color of Chrome's default date and time picker to a different shade of blue?

Is there a way to customize the color of the blue buttons, text, and date indicator in the native datetime picker for Chrome using CSS? https://i.stack.imgur.com/eZSaE.png ...

Dropdown select utilized to modify the value in MUI Datetimepicker

Currently, I am facing an issue with the react datetimepicker where the value does not change when selecting an option (for example: choosing 6 months should update the finish date to reflect this selection). Below is the code snippet: Child Component c ...

The Angular2 Ng Date Time picker appears oversized upon opening

Utilizing the Ng Date Time picker in conjunction with Angular2 frontend, which can be found at: I attempted to replicate the examples from this source: https://stackblitz.com/github/DanielYKPan/owl-examples/tree/date-time-picker?file=src%2Fmain.ts I ins ...

Guide on converting HTML datetime picker datetime-local to moment format

I am looking to convert an input type : <input type="datetime-local" name="sdTime" id="stTimeID" onChange={this.stDateTime} /> into a specific date format: const dateFormat = 'MM/DD/YYYY hh:mm:ss a'; To achieve this, I need to transfer ...

Steps for inputting time as 00:00:00 in MUI's X DateTimePicker

React:18.2.0 mui/material: 5.10.5 date-fns: 2.29.3 date-io/date-fns: 2.16.0 formik: 2.2.9 I'm facing an issue with using DateTimePicker in my project. I am trying to enter time in the format Hour:Minute:Second, but currently, I can only input 00:00 for Ho ...

Converting timezones with Angular's datetime binding

My application receives a datetime from a JSON object via a REST service in the following format: 2014-03-30T08:00:00 When I bind this datetime and pass it through a date filter, it appears to be converted into local time. {{ mytime.begin | date:'dd-MM ...

Create a Material UI Text Field that has a type of datetime and can span multiple lines

Is it possible to create a Material UI component of type "datetime-local" that can be displayed on multiple lines while still allowing the date to be edited? The issue arises when the width is too narrow and cuts off the date text. Although the TextField ...

Can you please guide me on how to effectively configure a personalized time zone using MUI date picker combined with dayjs?

In my application, the user's time zone is supplied by the server instead of being determined by the browser's settings. When I receive a Unix timestamp from the server and pass it to the date picker, the displayed date is incorrect because the date picke ...

What is the process for configuring a specific timezone in the datetimepicker?

I recently started using the datetimepicker jQuery plugin available at but I am struggling to understand how to incorporate timezone settings. I have reviewed the documentation provided, however, I could not locate any specific instructions regarding tim ...

Capture and set the new value of the Datetime picker in MUI upon user's acceptance click

import React from 'react' import { Stack, Typography } from '@mui/material' import { DateTimePicker } from '@mui/x-date-pickers/DateTimePicker' import { renderTimeViewClock } from '@mui/x-date-pickers/timeViewRenderers' import dayjs, { Dayjs } from 'dayjs' ...

Instructions on how to eliminate the minutes button from Material UI datetime picker

I'm currently working on customizing a datetimepicker from materialUI in ReactJS. My goal is to prevent the user from seeing or selecting minutes in the picker interface. Despite setting the views prop to include only year, month, date, and hours, users ar ...

How can I prevent Sundays from being selected in a jQuery datetimepicker?

I'm currently working with a jquery datetimepicker and my goal is to exclude Sundays from the selection. How can I achieve this? Below is the jquery code that I am using: $(".datetimepicker").datetimepicker({ format: 'm-d-Y H:i', defaultD ...

Double firing issue with ngModelChange when paired with ng DateTimePicker in Angular 7

When utilizing the ng datetimepicker library in Angular to display a date time picker, I'm experiencing an issue where the method triggered by (ngModelChange) fires twice simultaneously, causing the changed date to be logged twice in the console. Can someo ...

What is the best way to retrieve the elements within a third-party selector?

Within the same package, I am working with a selector called "own date picker." This selector includes a "div" element that contains an "input" field. I need to modify the CSS of this input field, but cannot directly access it in my project because it is p ...

Adjust date by one day using the Datetimepicker tool

I have been attempting to adjust the date of my input by one day either forward or backwards, but I seem to be stuck and not making any progress. Take a look at my code: function function backDay() { var date = $('input#datetimepicker').val(); ...

Designing a mobile user interface for time intervals

Currently, I am utilizing a datetimepicker for inputting a duration of time within a form. While the UI functions smoothly on a desktop, it struggles in a mobile setting. Despite my efforts, I have yet to discover a suitable alternative that seamlessly ope ...