# 時刻の切り捨て(DateTime to Date, trunc)

# JavaScript

dt.setHours(0, 0, 0, 0);
var dt = new Date('2018/08/14 12:34:56.789');
var d  = new Date('2018/08/14');

dt.setHours(0, 0, 0, 0); // trunc

assert.equal(dt.getTime(), d.getTime());

# PowerShell

dt.Date

[ 📩 ご意見 ]