Edit this page

getDate

Gets the date only - that is, removes the time part.

Parameters

date Date

The date to remove the time part.

Returns

Date A new date without the time part.

Example

<script>
    var myDate = new Date(2016,10,5,14,25,11);
    console.log(myDate); // Sat Nov 05 2016 14:25:11 GMT+0200 (FLE Standard Time)
    var newDate = kendo.date.getDate(myDate);
    console.log(newDate); // Sat Nov 05 2016 00:00:00 GMT+0200 (FLE Standard Time)
</script>
Is this article helpful? Yes / No
Thank you for your feedback!

Give article feedback

Tell us how we can improve this article

close
Dummy