extjs如何获取当前时间的月初
在ExtJS中,可以使用Ext.Date.getFirstDateOfMonth()方法来获取当前时间的月初。
示例代码如下:
var currentDate = new Date();
var monthStart = Ext.Date.getFirstDateOfMonth(currentDate);
console.log(monthStart);
这将打印出当前时间的月初日期。
原文地址: http://www.cveoy.top/t/topic/ilfS 著作权归作者所有。请勿转载和采集!