NDateTime.Date Property

Gets the date component of this instance. 

Return type : NDateTime

A new object with the same date as this instance, and the time value set to 12:00:00 midnight (00:00:00).

 

Examples

var date = new NDateTime(2013,9,21, 10,35,23);
console.log(date.ToString());
console.log(date.Date.ToString());

Output

Sat Sep 21 2013 10:35:23 GMT-0400 (Eastern Daylight Time)
Sat Sep 21 2013 00:00:00 GMT-0400 (Eastern Daylight Time)

Last edited Sep 22, 2013 at 12:29 AM by jeremydumais, version 1

Comments

No comments yet.