大家好,又见面了,我是你们的朋友全栈君。
a - ante meridiem and post meridiem d - day of month (no leading zero) dd - day of month (two digit) o - day of year (no leading zeros) oo - day of year (three digit) D - day name short DD - day name long g - 12-hour hour format of day (no leading zero) gg - 12-hour hour format of day (two digit) h - 24-hour hour format of day (no leading zero) hh - 24-hour hour format of day (two digit) u - millisecond of second (no leading zeros) uu - millisecond of second (three digit) i - minute of hour (no leading zero) ii - minute of hour (two digit) m - month of year (no leading zero) mm - month of year (two digit) M - month name short MM - month name long S - ordinal suffix for the previous unit s - second of minute (no leading zero) ss - second of minute (two digit) y - year (two digit) yy - year (four digit) @ - Unix timestamp (ms since 01/01/1970) ! - Windows ticks (100ns since 01/01/0001) '...' - literal text '' - single quote
$.formatDateTime("yy-mm-dd hh:ii:ss", new Date(result))
https://plugins.jquery.com/tag/format/
插件下载地址:
https://plugins.jquery.com/formatDateTime/
使用说明:
https://github.com/agschwender/jquery.formatDateTime/blob/1.1.4/README.md
发布者:全栈程序员-用户IM,转载请注明出处:https://javaforall.cn/127824.html原文链接:https://javaforall.cn
【正版授权,激活自己账号】: Jetbrains全家桶Ide使用,1年售后保障,每天仅需1毛
【官方授权 正版激活】: 官方授权 正版激活 支持Jetbrains家族下所有IDE 使用个人JB账号...