Linked Questions
73 questions linked to/from How to add 30 minutes to a JavaScript Date object?
43
votes
6
answers
149k
views
How to add 20 minutes to a current date? [duplicate]
Possible Duplicate:
How to add 30 minutes to a javascript Date object?
I can get the current date object like this:
var currentDate = new Date();
How can I add 20 minutes to it?
var ...
3
votes
3
answers
18k
views
How to add 5 hours & 30 minutes to time? [duplicate]
I am looking to add 5 hours & 30 mins to a certain time.
I have,
var d = new Date("Sun Apr 27 2014 16:47:53 GMT+0100");
any help would be much appreciated.
1
vote
6
answers
9k
views
Add minutes to current time, JavaScript [duplicate]
I would like to add 20 minutes to the current date. While browsing the messages already posted on this subject, I recovered a piece of code but I can not adapt it. Can you help me ?
// get the ...
-1
votes
1
answer
4k
views
How to get +15 minutes date time in Javascript with dd/mm/yyyy hh:ii AM/PM format? [duplicate]
I have to get +15 minutes date time in Javascript with dd/mm/yyyy hh:ii AM/PM format.
And I should compare two dates, which are in dd/mm/yyyy hh:ii AM/PM format.
JS:
var date = new Date();
var ...
-1
votes
3
answers
588
views
JavaScript 1 minute countdown not working properly [duplicate]
I created a simple 1 Minute countdown, but it seems not to be working I don't know why.
IT GIVES EXPIRED as response instead of the timer showing.
// Set the date we're counting down to
var ...
-4
votes
1
answer
1k
views
DateTime.UtcNow.AddMinutes((-1) * 300); in Typescript on UTC Time [duplicate]
in C# i can use DateTime.UtcNow.AddMinutes((-1) * 300); but how can i achieve the same result in Typescript?
I am using
var dummydate: any = new Date().toUTCString();
to convert it ...
-4
votes
1
answer
609
views
How to decode this time string [duplicate]
I got this string from an api
After looking at it I realized it was a dat/time
20220112201146
I then decoded it by hand to be
2022(Y)01(M)12(D)20(H)11(M)46(S)
How would I slice everything up to be Y:...
0
votes
2
answers
393
views
How to update time depends on minute in javascript [duplicate]
For example, there is a time value like below.
const currentDate = '2019-10-21 21:33'
And I want to add some specific minute to this date.
const addMinute = '70'
In result, I want to get,
const ...
-2
votes
1
answer
565
views
date full text string format to iso 8601 [duplicate]
I would like to add 30 minutes to this date format:
"Mon Sep 11 2017 12:00:00 GMT+0200 (CEST)"
I've made a function that works with the ISO 8601:
add30mnTo(date : string){
var initialdate = (...
-2
votes
4
answers
201
views
JavaScript adding minutes to date [duplicate]
I'm trying to add 3 minutes to the time but instead of adding to the time, it instead acted like they're two strings and added them together like they're strings. What am I doing wrong?
var minutes = ...
1
vote
2
answers
219
views
Adding 50 minutes to Date() [duplicate]
What I'm trying to do is to add 50 minutes to the current date I get, so I want to get the date and then get the time and then add 50 minutes. I want to check if I'm doing it the right way:
d = new ...
0
votes
0
answers
178
views
Javascript date/time operator [duplicate]
I want to implement +/- functionality in date/time in Javascript.
Here is example.
var now = new Date("Sun Dec 09 01:36:45 EST 2012");
console.log(now + 3min);
How can I do this?
Is there any ...
0
votes
1
answer
89
views
add time to date in javascript without using library [duplicate]
I need to add the current time to a date, but there is no way to do it
const d = new Date();
const time = {
seconds: d.getSeconds(),
minuts: d.getMinutes(),
hours: d.getHours(),
mills: d....
0
votes
2
answers
105
views
How to set the date to be 3 minutes ahead [duplicate]
I need a timer for my program so my idea was to use the Date() and a future date to make the difference between them a timer,but i have been having problems with Date() functions,where the future ...
0
votes
0
answers
71
views
Add time to datetime and return the date and time javascript [duplicate]
In my application am selecting "startdate" and "starttime" from comboboxes.
then i need to add 1 day 1 hour 20 min to that selected datetime.
how to do that any suggestion