Returns the beginning of the week of the specified DateTime.
Namespace: MindFusion.Scheduling
File: DateTime.js
JavaScript Copy Code |
---|
function getWeekFirstDate (date, [formatInfo]) |
A DateTime instance.
Object. The formatInfo object.
A DateTime instance specifying the beginning of the week.
The 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); |
JavaScript Pack Programmer's Guide | © 2024 MindFusion |