Get day of the week, date get week, time get week, JS get week based on date string
>>>>>>>>>>>>>>>>>>>>>>>>>>> >>>>>>>.
Sweet Potato Yiu December 30, 2016 08:47:38 Friday
http://www.cnblogs.com/fanshuyao/
/** * Gets the day of the week based on the date string * @param datestring Date string (for example: 2016-12-29), the current date of the user's computer is empty @returns {String} */function Getweek (datestring {var date;if (IsNull (datestring)) {date = new date ();} Else{var Datearray = Datestring.split ("-");d ate = new Date (datearray[0], parseint (datearray[1]-1), datearray[2]);} var weeks = new Array ("Day", "one", "two", "three", "four", "five", "six"),//return "Week" + weeks[date.getday ()];return "Week" + "Day 123456". Ch Arat (Date.getday ());};
>>>>>>>>>>>>>>>>>>>>>>>>>>> >>>>>>>.
Sweet Potato Yiu December 30, 2016 08:47:38 Friday
http://www.cnblogs.com/fanshuyao/
Get day of the week, date get week, time get week, JS get week based on date string