javascript-how add 12 hrs to 2011-5-11 03:33:43 PM
manu555
0
Newbie Poster
Recommended Answers
Jump to Post<script lang='javascript'>
var d = new Date(2011,04,11,15,33,43); //month index starts from 0-11
d.setHours(12);
alert(d)
</script>
All 3 Replies
urtrivedi
276
Nearly a Posting Virtuoso
manu555
0
Newbie Poster
urtrivedi
276
Nearly a Posting Virtuoso
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.