Search
DateTime.day Property
See Also
 






Gets the day component of the date represented by this DateTime instance.

Namespace: MindFusion.Scheduling
File: DateTime.js

 Syntax

JavaScript  Copy Code

get day() {}

 Property Value

Number. An integer that represents the date. Values range between 1 and 31.

 Example

The following code creates a date from the date parts of a date instance, which is read from an array with JSON instances:

JavaScript  Copy Code

var p = MindFusion.Scheduling;

var date = p.DateTime.fromDateString(data[i].date);
date = p.DateTime.fromDateParts(date.year, date.month, date.day, 0,0,0);

 See Also