主要是getDateTimeInstance()和getInstance(),除了一个是MEDIUM一个是SHORT,还有别的区别吗?
API上这么写的
static DateFormat getInstance()
Get a default date/time formatter that uses the SHORT style for both the date and the time.
static DateFormat getDateTimeInstance()
Gets the date/time formatter with the default formatting style for the default FORMAT locale. |
|