Skip to main content
The 2024 Developer Survey results are live! See the results

All Questions

Tagged with
0 votes
2 answers
62 views

How to set datetime format in jquery datetimepicker?

I need to set a datetimepicker in the specific format dd/mm/yyyy hh:mm tt for example 13/03/2024 2.30 PM. But, I am getting 13/03/2024 14.30. I also can not set the minutes. It only shows the hours ...
SYED NAWAZ PRINCE's user avatar
0 votes
1 answer
90 views

Show / Hide a CSS element depending on the date

I am working on a list with 3 rows and I need to show the 2nd element on the list only from day 1 to day 5 each Month. I target the pseudo element li:nth-child(2) and works on CSS fine if I change ...
Sal Castanedo's user avatar
0 votes
0 answers
23 views

datetime-local does not show value [duplicate]

I have this input field <input type="datetime-local" name="event_start_date" id="event_start_date" class="form-control onlydatepicker" placeholder="...
George Kapellakis's user avatar
0 votes
0 answers
35 views

datepicker time is not equal how to fix

todayDateTime displays the correct time, but startDateTest displays the incorrect time. It has added 7 hours. I want it to display the correct time without me subtracting the hours. function ...
Narish's user avatar
  • 5
0 votes
0 answers
52 views

To convert Gregorian date to solar date-I showed with such errors

i have this script for convert DateTime persian to English -i have error code. public ActionResult addvisit(int docid, int visitid, string visitdatetime, string pid) { int ...
Ali norouzi's user avatar
-4 votes
1 answer
54 views

How to convert (20190909070000+0000) to timespan like mm/dd/yyyy hh:mm:ss pm by using moment.js [duplicate]

I am trying to convert datetime "20190909070000+0000" value into mm/dd/yyyy hh:mm:ss pm by using moment.js. Kindly assist me on this.
Ranjan Singh's user avatar
1 vote
2 answers
61 views

Replace seconds with time format on multiple elements

I'm struggling a little bit. I have multiple elements containing a time in seconds. <p><time class="replace_time">3.232151</time></p> <p><time class="...
mrmoon97's user avatar
1 vote
1 answer
659 views

Trigger inside of a touch/click event for iOS does not work

I am developing a mobile application, and I want my user to click an image, and for that to open their device's native datetime picker application. NB: this works fine for android - just not for iOS. ...
Ole M's user avatar
  • 327
1 vote
1 answer
60 views

Why show invalid date. How to get input on Landon's current date time?

Why show an invalid date? How to get input on Landon's current date time? N.B: In my project moment.tz() is not working. <script> let time = new Date(new Date().toLocaleString('en-GB', { ...
Motalib Hossain's user avatar
0 votes
0 answers
99 views

Date time format using jQuery

I have a code that is used in .NET Core MVC and its like <div class="col-xs-6 col-sm-6 col-md-6 mt-15"> <label>Start Date</label> <div class="form-group"&...
joseph thomas's user avatar
0 votes
3 answers
163 views

Javascript to check if todays date is after Tuesday at 6pm in current week

I am trying to restrict users from seeing certain information on a landing page to only page by comparing if todays date is after Tuesday at 6pm within the current week. I have been trying to setup ...
designmode's user avatar
2 votes
1 answer
1k views

Correct way of using flatpickr to display, parse and save dates from/to database

I am working on a web app where one can create events. The input fields for the date I would like to display with flatpickr. Submitting an event and the according dates works but as I am trying to use ...
marcushorndt's user avatar
0 votes
2 answers
127 views

How to get entity in diapason of date?

I have query: expiration >: '01-01-2022' and expiration <: '09-01-2022' My database: id | customer_id | type | expiration | 1 | 1 | Test | 03-01-2022 | 2 | 2 |Test2 | 05-...
Loki's user avatar
  • 13
0 votes
1 answer
209 views

How to Find dates for given week range in javascript

Lets say there is a recurring range of weekday, Start : Monday 1 PM End : Tuesday 2 PM Start : Friday 12 AM End : Monday 12 AM Start : Saturday 12 AM End : Wednesday 12 AM etc... So we need ...
V.J.'s user avatar
  • 918
1 vote
3 answers
568 views

pass javascript date to input Type of c# "datetime"

with asp.net, how can pass javascript date into input with type datetime. input tag: <input asp-for="EndingDate" id="enddate" class="form-control input-sm" /> and ...
mohammed alani's user avatar

15 30 50 per page
1
2 3 4 5
66