More Related Content
PDF
Storytelling For The Web: Integrate Storytelling in your Design Process PDF
2024 Trend Updates: What Really Works In SEO & Content Marketing PDF
32 Ways a Digital Marketing Consultant Can Help Grow Your Business PPTX
PPTX
Function Java Vector class PPT
PPT
PPTX
Featured
PDF
Artificial Intelligence, Data and Competition – SCHREPEL – June 2024 OECD dis... PDF
How to Leverage AI to Boost Employee Wellness - Lydia Di Francesco - SocialHR... PDF
5 Public speaking tips from TED - Visualized summary PDF
How Race, Age and Gender Shape Attitudes Towards Mental Health PDF
Everything You Need To Know About ChatGPT PDF
Product Design Trends in 2024 | Teenage Engineerings PDF
PDF
2024 State of Marketing Report – by Hubspot PDF
Trends In Paid Search: Navigating The Digital Landscape In 2024 PDF
AI Trends in Creative Operations 2024 by Artwork Flow.pdf PDF
Google's Just Not That Into You: Understanding Core Updates & Search Intent PDF
PEPSICO Presentation to CAGNY Conference Feb 2024 PDF
Getting into the tech field. what next PDF
Time Management & Productivity - Best Practices PDF
Introduction to Data Science PDF
Social Media Marketing Trends 2024 // The Global Indie Insights PPTX
How to Prepare For a Successful Job Search for 2024 PDF
How to have difficult conversations PDF
ChatGPT and the Future of Work - Clark Boyd PDF
Content Methodology: A Best Practices Report (Webinar) Java date formatsymbols class
- 1.
- 2.
- 3.
new DateFormatSymbols
( object_locale)
method : new DateFormatSymbols
( object_locale );
return type : DateFormatSymbols
content : ใช้สร้าง Object
DateFormatSymbols โดยมีค่า รูปแบบของวันที่
และเวลา ตาม timezone ของ Locale ที่กำาหนด
example : Locale locale = new Locale ( "th",
"TH" ); DateFormatSymbols
date_format_symbols = new
- 4.
setEras()
method : setEras ( object_string_array);
return type : void
content : ใช้กำาหนด คำาอธิบาย ศักราช ให้กับ
Object DateFormatSymbols
example : DateFormatSymbols
date_format_symbols = new
DateFormatSymbols (); String [] eras =
{ "ก่อนพุทธศักราช", "หลังพุทธศักราช" };
date_format_symbols.setEras ( eras );
- 5.
getEras()
method : getEras ();
return type : StringArray
content : ใช้คนค่า คำาอธิบาย ศักราช ของ
ื
Object DateFormatSymbols ( โดยมีคา BC
่
และ AD ตามลำาดับ )
example : DateFormatSymbols
date_format_symbols = new
DateFormatSymbols (); String [] eras =
date_format_symbols.getEras ();
- 6.
setMonths()
method : setMonths
( object_string_array );
returntype : void
content : ใช้กำาหนด คำาอธิบาย เดือนแบบเต็ม
ให้กับ Object DateFormatSymbols
example : DateFormatSymbols
date_format_symbols = new
DateFormatSymbols (); String [] months =
{ "มกราคม", "กุมภาพันธ์", "มีนาคม", "เมษายน",
"พฤษภาคม", "มิถุนายน", "กรกฎาคม",
- 7.
- 8.
setShortMonths()
method : setShortMonths
( object_string_array );
returntype : void
content : ใช้กำาหนด คำาอธิบาย เดือนแบบย่อ
ให้กับ Object DateFormatSymbols
example : DateFormatSymbols
date_format_symbols = new
DateFormatSymbols (); String [] months =
{ "ม.ค.", "ก.พ.", "มี.ค.", "เม.ษ.", "พ.ค.", "มิ.ย.",
"ก.ค.", "ส.ค.", "ก.ย.", "ต.ค.", "พ.ย.", "ธ.ค." };
- 9.
- 10.
getShortMonths()
example : DateFormatSymbols
(ต่อ )
date_format_symbols =new
DateFormatSymbols (); String [] months =
date_format_symbols.getShortMonths ();s
example : DateFormatSymbols
date_format_symbols = new
DateFormatSymbols (); String [] months =
{ "มกรำคม", "กุมภำพันธ์", "มีนำคม", "เมษำยน",
"พฤษภำคม", "มิถุนำยน", "กรกฎำคม",
"สิงหำคม", "กันยำยน", "ตุลำคม", "พฤศจิกำยน",
"ธันวำคม" };
- 11.
setWeekdays()
method : setW
eekdays
( object_string_array );
returntype : void
content : ใช้กำำหนด คำำอธิบำย ชื่อวันแบบเต็ม
ให้กับ Object DateFormatSymbols
example : DateFormatSymbols
date_format_symbols = new
DateFormatSymbols (); String [] days =
{ "วันจันทร์", "วันอังคำร", "วันพุธ", "วัน
พฤหัสบดี", "วันศุกร์", "วันเสำร์", "วันอำทิตย์" };
- 12.
- 13.
- 14.
- 15.