TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
venkat
NA
65
3k
how to set hours,minutes to my date
Jan 24 2018 7:16 AM
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
Reply
Answers (
1
)
Here i am getting output as undefined, please tell me why
Website design Services