3. Return
•
•
•
•
new S pleDateF at
im
orm
()
method : new SimpleDateFormat ();
return type : SimpleDateFormat
content : ใช้ส ร้า ง Object SimpleDateFormat
example : SimpleDateFormat
simple_date_format = new
SimpleDateFormat ();
4. Return
new S pleDateF at
im
orm
( pattern )
• method : new SimpleDateFormat
( pattern );
• return type : SimpleDateFormat
• content : ใช้ส ร้า ง Object
SimpleDateFormat โดยมีก ารจัด รูป แบบไว้
• example : SimpleDateFormat
simple_date_format = new
SimpleDateFormat ( "E yyyy-MM-dd " );
5. Return
new S pleDateF at
im
orm
(pattern,locale)
• method : new SimpleDateFormat ( pattern,
locale );
• return type : SimpleDateFormat
• content : ใช้ส ร้า ง Object
SimpleDateFormat โดยมีก ารจัด รูป แบบไว้
• example : Locale locale = new Locale ( "th",
"TH" ); SimpleDateFormat
simple_date_format = new
6. Return
new S pleDateF at ( pattern,
im
orm
dateform
atsym
bols )
• method : new SimpleDateFormat ( pattern,
dateformatsymbols );
• return type : SimpleDateFormat
• content : ใช้ส ร้า ง Object SimpleDateFormat โดยมี
การจัด รูป แบบไว้
• example : DateFormatSymbols
date_format_symbols = new DateFormatSymbols
(); SimpleDateFormat simple_date_format = new
SimpleDateFormat ( "E d mmm yy",