Linked Questions

396 votes
2 answers
395k views

How to get time in milliseconds since the unix epoch in Javascript? [duplicate]

Possible Duplicate: How do you get a timestamp in JavaScript? Calculating milliseconds from epoch How can I get the current epoch time in Javascript? Basically the number of milliseconds since ...
antonpug's user avatar
  • 14.4k
15 votes
3 answers
23k views

How to convert date to milliseconds by javascript? [duplicate]

I have multiple date's for example(25-12-2017) i need them to be converted to milliseconds by javascript
Ashok Kumar's user avatar
24 votes
2 answers
3k views

Javascript method to find number of milliseconds from 1970-01-01? [duplicate]

Say, I have a date var dt = new Date('2012-01-01'); Is there a method in Javascript to return number of milliseconds since 1970-01-01? For this particulat date it would return 1325376000000 For this ...
Ashima's user avatar
  • 4,854
2 votes
2 answers
13k views

Javascript - How to check if current time is between two different times [duplicate]

I am trying programmatically check if the current time for my web application is between two predefined times. I don't know how to get the current time and then set variables that store two predefined ...
deadsix's user avatar
  • 375
1 vote
1 answer
16k views

how to get the timestamp with current date and microseconds in Node.js? [duplicate]

Is there a way to get the complete timestamp(including date, hour of the day, min, microseconds and timezone) in Node.js? I am using node version 4.3.0.
isha's user avatar
  • 21
-3 votes
2 answers
6k views

Get time in javascript like python time.time() [duplicate]

In python I can use time.time() to get this: time = time.time() time = 1362914221 How do I get this in java-script? time = ????
Tampa's user avatar
  • 78.8k
1 vote
2 answers
8k views

Timestamp from the web browser? [duplicate]

Possible Duplicate: How can I determine a web user's time zone? How do you get a timestamp in JavaScript? I would like to get the timestamp from my user web browser. Example: If now a user ...
Alex Marcos's user avatar
1 vote
1 answer
3k views

How To Get Raw Date Number? [duplicate]

In my application, I am using my application to retrieve the date information from the server. e.g:1533675600000. How do I get today's raw date number in this way? Every day, I want to refresh this ...
fatih's user avatar
  • 77
1 vote
2 answers
4k views

Get timestamp of current hour in Javascript [duplicate]

Is it possible for me to get the UTC time of current hour in Javascript? I've tried the following: var mins = new Date().getMinutes(); var hours = new Date().getHours(); var hourStamp = new Date()....
Newtt's user avatar
  • 6,210
-3 votes
1 answer
3k views

how to convert particular time into UTC timestamp [duplicate]

I'm having a time in this format like var time = "22:00:00" I need to convert this into UTC time format like 1567890764 I'm using this one to convert time into UTC. Math.floor(new Date().getTime() /...
Saravanan CM's user avatar
0 votes
0 answers
24 views

Moment UTC time how to convert to seconds [duplicate]

I would like to convert a date from my filter to UTC time and then to seconds keeping the UTC time / not the local time. Examples: new Date() // Wed Aug 19 2020 15:28:09 GMT+0200 (Central European ...
xyz83242's user avatar
  • 846
486 votes
14 answers
414k views

How do I measure the execution time of JavaScript code with callbacks?

I have a piece of JavaScript code that I am executing using the node.js interpreter. for(var i = 1; i < LIMIT; i++) { var user = { id: i, name: "MongoUser [" + i + "]" }; db.users....
Stormshadow's user avatar
  • 7,219
401 votes
17 answers
701k views

How to get the current date or/and time in seconds

How do I get the current date or/and time in seconds using Javascript?
Hailwood's user avatar
  • 93.1k
248 votes
14 answers
176k views

Stop jQuery .load response from being cached

I have the following code making a GET request on a URL: $('#searchButton').click(function() { $('#inquiry').load('/portal/?f=searchBilling&pid=' + $('#query').val()); }); But the ...
dragonmantank's user avatar
340 votes
4 answers
691k views

Get a UTC timestamp [duplicate]

How can I get the current UTC timestamp in JavaScript? I want to do this so I can send timestamps from the client-side that are independent of their timezone.
Ben G's user avatar
  • 26.9k

15 30 50 per page
1
2 3 4 5 6