Linked Questions

102 questions linked to/from How do I get the current date in JavaScript?
456 votes
7 answers
2.0m views

I would like to add a current date to a hidden HTML tag so that it can be sent to the server: <input type="hidden" id="DATE" name="DATE" value="WOULD_LIKE_TO_ADD_DATE_HERE"> How can I add a ...
3 votes
1 answer
28k views

I'm trying to get the current day/month/year in an Android App in react-native. This is what i've done: currentDay: new Date(), ... console.log('Date:'+this.state.currentDay ,); console.log('Day: '...
4 votes
2 answers
25k views

Possible Duplicate: How to get current date in JavaScript How can i Get the time out of my browser whit using javascript? This do I need to make a comparison in my script.
2 votes
2 answers
13k views

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 ...
3 votes
2 answers
5k views

Possible Duplicate: How to get current date in JavaScript I need to get todays date in the format yyyymmdd using JavaScript. I've used the following code: var d = new Date(); d.getFullYear()+ '' ...
van's user avatar
  • 9,449
-5 votes
2 answers
11k views

I want to show the date in an alert in JavaScript. <script type="text/JavaScript"> alert(date()); </script>
0 votes
1 answer
3k views

I have a simple input like : Enter Payment Date : <input type="date" name="date" required><br/><br/> Now I want to restrict the user from selecting a date before the current date. ...
Steve Doson's user avatar
0 votes
1 answer
3k views

My client and server are at different time-zones.I am trying to get datetime in javascript but moment function or method toISOString() gives me string output. Even when I recreate the date object it ...
0 votes
2 answers
2k views

I am trying to pre-populate a text box with today's date, but for some reason, it keeps showing today's date as 5/30/13, which is a month behind. This code should just be pulling the local time so ...
-2 votes
1 answer
1k views

I want to show the current date in my invoice. To do this, im using the following method: <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script> Datum: &...
Simagdo's user avatar
  • 87
-4 votes
3 answers
660 views

I'm trying to get month from my date variable. date=Date.now(); console.log(date); >>2019年12月04日T08:55:48.972Z I want to get the month from this date but when I'm using getMonth(), I'm getting ...
0 votes
1 answer
841 views

In my web application, I show the user the request posted date time in the view. I want to additionally show how long ago that was posted with Date time now. What is the easiest way to show it This is ...
0 votes
1 answer
561 views

I wanted to know how can I get todays date in as July 17,2014 format. I am new to javascript.. please help but I have tried using var today = new Date();..but it gives me current date and not in the ...
-1 votes
3 answers
726 views

I am building a web application which requires date to be entered, but on entering a date it will be saved in mm-dd-yyyy and on using bootstrap it will be saved in yyyy-mm-dd format. Below is the ...
-2 votes
1 answer
484 views

Is there possibility to get the browser time in react. Is there any library that can help with this. The web page should display the time of the browsers( like chrome, explorer firefox etc.) Thank and ...

15 30 50 per page
1
2 3 4 5
...
7