SimpleDateFormat inherits the Format method from java.text.DateFormat, and the specific method signature is as follows:
format
Common Final String Format (Date Date)
Format a date as a date/time string.
Examples of alphabetic date or time element representations
Geera identifier text ads
Year y year1996; 96
July in M years; July; 07
Number of weeks in a year 27
W weeks in a month 2
Days in d years 189
Days in d months 10
F 2nd week of each month.
E day of the week text Tuesday; Tuesday
Am/pm label text pm
Hours in a day (0-23) Number 0
K hours in a day (1-24) number 24
Hours expressed in morning/afternoon (0- 1 1) are 0.
Morning/afternoon (1- 12) Hours 12
Minutes in m hours: number 30
Seconds of s minutes 55
S milliseconds 978
Z time zone universal time zone Pacific standard time; PSTGMT-08:00
Z time zone RFC 822 time zone -0800
For more information, please refer to-"