Java simple dateformat
- 2. new SimpleDateFormat () ส ร้า ง Object
ใช้
SimpleDateFormat
ใช้ pattern )
new SimpleDateFormat ( ส ร้า ง Object
SimpleDateFormat โดยมีก าร
จัด รูป แบบไว้
new
SimpleDateFormat
(pattern,locale)
ใช้ส ร้า ง Object
SimpleDateFormat โดยมีก าร
จัด รูป แบบไว้
ใช้ส ร้า ง Object
new
SimpleDateFormat โดยมีก าร
SimpleDateFormat
จัด รูป แบบไว้
( pattern,
dateformatsymbols )
applyPattern()
ใช้ก ำา หนดรูป แบบ วัน ที่แ ละเวลา
ให้ก บ
ั
ObjectSimpleDateFormat
ใช้
applyLocalizedPattern() ก ำา หนดรูป แบบ วัน ที่แ ละเวลา
ให้ก บ Object
ั
SimpleDateFormat
- 6. Return
new SimpleDateFormat ( pattern,
dateformatsymbols )
• method : new SimpleDateFormat ( pattern,
dateformatsymbols );
• return type : SimpleDateFormat
• content : ใช้ส ร้า ง Object SimpleDateFormat
โดยมีก ารจัด รูป แบบไว้
• example : DateFormatSymbols
date_format_symbols = new
DateFormatSymbols (); SimpleDateFormat
simple_date_format = new
- 7. Return
applyPattern()
• method : applyPattern ( pattern );
• return type : void
• content : ใช้ก ำำ หนดรูป แบบ วัน ที่แ ละ
เวลำ ให้ก ับ Object SimpleDateFormat
• example : SimpleDateFormat
simple_date_format = new
SimpleDateFormat ();
simple_date_format.applyPattern ( "E