更新时间:2023-01-28 23:10:19
使用 SimpleDateFormat
到第一个 parse()
String
to Date
然后 format()
日期
到 String
Hi i have the following string:2012-05-20T09:00:00.000Z and i want to format it to be like 20/05/2012, 9am
How to do so in java?
Thanks
use SimpleDateFormat
to first parse()
String
to Date
and then format()
Date
to String