w3ka dev - share the knowledge .NET
Strip time from javascript date object
Setting up the hours to zero does the trick:
var myDate = new Date(); //current date and time
myDate.setHours(0,0,0,0);
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment