格式化日期。
date().format(pattern)
pattern
Y-m-d H:i:s
%Y-%m-%d
String。
String
now = date() result = date().format(pattern)