相关文章推荐
善良的鞭炮  ·  oracle ...·  7 月前    · 
不羁的感冒药  ·  Get exclusive jobs on ...·  1 年前    · 
英俊的羊肉串  ·  Page.EnableEventValida ...·  1 年前    · 

GTM+800 的时间格式转成 yyyy-mm-dd 的格式:可以先得到该 date 的对象值的 tostring ,再把这个 GTM+800 字符格式的字符串赋给 new Date ,alert(a.getFullYear() + "-"+ (a.getMonth()+1) + "-" + a.getDate();)

var begin = advanceForm.getForm().findField("O");
var t=begin.getValue().toString();
var a = new Date(t);
var c=a.getFullYear() + "-"+ (a.getMonth()+1) + "-" + a.getDate();
if(Date.parse((c).replace(/\-/g,'/'))>Date.parse((d).replace(/\-/g,'/'))){
Ext.Msg.alert('起始日期大于终止日期!');
return;
}本文转自dotfun 51CTO博客,原文链接:http://blog.51cto.com/dotfun/1338182

T16:00:00.000Z: expected format yyyy-MM-dd HH:mm:ss 时间戳格式化
T16:00:00.000Z: expected format yyyy-MM-dd HH:mm:ss 时间戳格式化
JAVA 最简单获取系统时间代码 LocalDateTime( 以yyyy-MM-dd HH:mm:ss.SSS格式显示)
JAVA 最简单获取系统时间代码 LocalDateTime( 以yyyy-MM-dd HH:mm:ss.SSS格式显示)
两种转换2021-01-01T00:00:00Z为2021-01-01 00:00:00时间格式的方式(UTC时间转为yyyy-MM-dd HH:mm:ss)
两种转换2021-01-01T00:00:00Z为2021-01-01 00:00:00时间格式的方式(UTC时间转为yyyy-MM-dd HH:mm:ss)