Returns the beginning of the week of the specified DateTime.
Namespace: MindFusion.Scheduling
Assembly: DateTime.js
SyntaxJavaScript
Copy Code
|
|---|
function getWeekFirstDate (date, [formatInfo]) |
A DateTime instance.
Object. The formatInfo object.
A DateTime instance specifying the beginning of the week.
ExampleThe following code gets the beginning of the week, which contains the current date of the calendar:
JavaScript
Copy Code
|
|---|
| var p = MindFusion.Scheduling; .... var startDate = p.DateTime.getWeekFirstDate(calendar.date); |
See Also