支持字符串、Date、时间戳以及数组等格式,可以像PHP的date()函数一样,格式化日期时间,计算相对时间 ...
Takes a javascript Date object and turns it into a string in the supplied format. If you use dateToLocalFormat, the output will be in your local timezone, if you use dateToUtcFormat the output will be ...