如何根据提供的日期获得给定周的星期一?
当我BaseDate.parse("last monday");
时,我收到了错误。
InitDate = "29/10/2013" // Some Date
BaseDate = Date.parse(InitDate); // Tue Oct 28 2013 00:00:00 GMT+0000 (GMT Standard Time)
CurrentWeekMonday = BaseDate.parse("last monday");
//TypeError: Object Wed Nov 28 2012 00:00:00 GMT+0000 (GMT Standard Time) has no method 'parse'
任何建议都非常感谢。