Tech
Forums
Jobs
Books
Events
Interviews
Live
More
Learn
Training
Career
Members
Videos
News
Blogs
Login
Sign Up
Ask Question
1
Reply
how to set hours,minutes to my date
venkat
Jan 24 2018 7:16 AM
132
Reply
i am trying to set hours,minutes and seconds but not able to do please help on this.
input: 07/21/2017
here input mean :currValue="07/21/2017 "
my current code is:
var today = new Date(currValue);
var myToday = new Date(today.getFullYear(), today.getMonth(), today.getDate(), today.setHours(0), today.setMinutes(0));
output: 07/21/2017 06:32:56 AM
Upload Source Code
Select only zip and rar file.
Post
Reset
Cancel
Answers (
1
)
Next Recommended Forum
Here i am getting output as undefined, please tell me why
Website design Services