Time The time format processing method

Are generally accurate to call time on the day when every minute

Minutes and seconds to remove it when the time how to call

Treated with the following format

// time formatting
var = new new a Date Time (data.FTime);
var year = time.getFullYear (); // Get On
var month = time.getMonth () + 1 ; // Get month
var day = time.getDate (); // get the day
time = year + "-" + month + "-" + day;

This general approach will be to use minutes and seconds to remove the display when you call when you call on the day as there is no longer a tenth of a second

Guess you like

Origin www.cnblogs.com/yutang-wangweisong/p/11622219.html