需求: 前台页面输入日期联动选择, 需要传给后台 yyyy-MM-dd 进行匹配日期字段查询数据,但是前端页面from表单上拿到的值是 "2019-10-01T16:00:00.000Z" 这样的格式, 需要做前端处理 如下图: format="yyyy 年 MM 月 dd 日" value-for ...
分类:
其他好文 时间:
2019-12-26 20:58:55
阅读次数:
474
1. MySQL(http://www.mysql.com)mm.mysql-2.0.2-bin.jar Class.forName( "org.gjt.mm.mysql.Driver" ); cn = DriverManager.getConnection( "jdbc:mysql://MyDbC ...
分类:
数据库 时间:
2019-12-25 01:59:03
阅读次数:
213
在windows上执行的时候,option(“timestampFormat”, “yyyy/MM/dd HH:mm:ss ZZ”)必须带上,不然报错: Exception in thread "main" java.lang.IllegalArgumentException: Illegal pa ...
分类:
编程语言 时间:
2019-12-24 23:47:57
阅读次数:
147
要用server来监控底下各个客户端的时间,使用自带的监控项 system.localtime[],(type有utc和local两种,utc就是使用的时间戳,local是字符串格式的时间 yyyy mm dd hh mm ss,可以不指定type,使用默认,默认由返回值的类型决定,整型返回值为ut ...
分类:
其他好文 时间:
2019-12-24 22:06:39
阅读次数:
138
//获取自定义样式完整时间 DateTime.Now.ToString("yyyy-MM-dd hh:mm:ss.fff"); //2019-12-24 02:57:37.149 //获取日期+时间 DateTime.Now.ToString(); // 2008-9-4 20:02:10 Date ...
datetime YYYY-MM-DD HH:MM:SS date YYYY-MM-DD unixstamp 时间戳 10位数字 select UNIX_TIMESTAMP(); select UNIX_TIMESTAMP(NOW());select now();select date("2019- ...
分类:
数据库 时间:
2019-12-24 12:08:43
阅读次数:
83
1、${__time()} 》当前时间,一串数字格式 2、${__time(yyyy-MM-dd)} 》当前日期,年-月-日格式 3、${__time(yyyy-MM-dd HH:mm:ss)} 》当前时间,年-月-日 时:分:秒格式 4、${__timeShift(yyyy-MM-dd,,P-3D ...
分类:
其他好文 时间:
2019-12-21 13:50:16
阅读次数:
381
身份证正则 xxxxxx yyyy MM dd 375 0 十八位 xxxxxx yy MM dd 75 0 十五位 地区:[1-9]\d{5}年的前两位:(18|19|([23]\d)) 1800-3999年的后两位:\d{2}月份:((0[1-9])|(10|11|12)) 天数:(([0-2] ...
分类:
其他好文 时间:
2019-12-21 11:43:49
阅读次数:
73
sql语句是select left(replace(rq,'-','/'),10) as rq from 表名 tp5.1中的写法 $res = Db::table('表名') ->field("left(replace(rq,'-','/'),10) as rq") ->paginate(20); ...
分类:
数据库 时间:
2019-12-20 11:48:14
阅读次数:
129
SpringBoot接收对象中包含时间参数,前端传过来的时间数据为'2019-12-19 08:08:08',SpringBoot不能自己转化时间为Date,会报错。 解决办法: 使用@JsonFormat注解 @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", ...
分类:
编程语言 时间:
2019-12-19 23:43:54
阅读次数:
322