Get Day or Date of the Monday of a given week
Tue, Jan 18 2011, 17:59 Javascript, programming PermalinkI have created a Javascript function to get the date of the monday in a given week. The following functions are included:
- mv_leapck(year, flag) - returns 0 or 1 or 365 or 366,
- mv_isDateObject(something) - returns 0 or 1
- mv_dateToString(something, formatstring) - returns a string containing parts of a date according to a passed format
- mv_mondayOfWeek(year, weekno, flag) - returns the monday of the week as (a) a day number (YYYYDDD) or (b) milliseconds or (c) a date as YYYYMMDD