asp classic - Get the Monday of this week where a week is Mon - Sun (VBScript) -
In VBScript, how can I get to the current week on Monday, assuming one week, Mon-Sun and Not Sun-Satin? The following code is Sun-Saturn on Monday, so it is close but not quite right: How can I do this without changing the LCID settings? takes the second argument to specify the first day of the first week of the week. Therefore I did not test that my argument is correct but the technique will work for you.
get a private function Monday (D) getMonday = DATEADD ("d", 2 - WEEKDAY (d), D) Last Function
date ("D", 1 - V (D, 2), d)
Comments
Post a Comment