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
‹
›
Home
View web version
No comments:
Post a Comment