Date format


[ ´ÙÀ½ ±Ûµé ] [ À̾ ±Û¿Ã¸®±â(´äÇϱâ) ] [ ÀÚ¹Ù ¹¯°í ´äÇϱâ ]

±Û¾´ÀÌ :Sung Yi 2000³â 2¿ù 17ÀÏ 02:39:16

In Reply to: new Date(File.lastModified()) ·Î ÇØ º¸´Ï ÀÌ»óÇÑ ³¯Â¥°¡ Ãâ·Â???? posted by ÀÌ¿¬È£ on 2000³â 2¿ù 16ÀÏ 17:58:37:

Why don't you format it to your way.


String dateFormat = "MMM.dd, yyyy"; //i.e) Apr 7, 2000 or "yyyy/MM/dd"...


Data yourDate = new Date(); //get current date or your file date
:
SimpleDateFormat formatter = new SimpleDateFormat(dateFormat, new Locale("en","US"));
:
:
System.out.println(formatter.format(yourDate));
:
:





´ÙÀ½ ±Ûµé:



À̾ ±Û¿Ã¸®±â(´äÇϱâ)

À̸§:
E-Mail:
Á¦¸ñ:
³»¿ë:
HTML ÅÂ±× Æ÷ÇÔ ¿©ºÎ: HTML ¹®¼­ÀÏ °æ¿ì üũ
°ü·Ã URL(¼±ÅÃ):
URL Á¦¸ñ(¼±ÅÃ):
°ü·Ã À̹ÌÁö URL:


[ ´ÙÀ½ ±Ûµé ] [ À̾ ±Û¿Ã¸®±â(´äÇϱâ) ] [ ÀÚ¹Ù ¹¯°í ´äÇϱâ ]