DateFormat « Development « Java Tutorial

Home
Java Tutorial
1.Language
2.Data Type
3.Operators
4.Statement Control
5.Class Definition
6.Development
7.Reflection
8.Regular Expressions
9.Collections
10.Thread
11.File
12.Generics
13.I18N
14.Swing
15.Swing Event
16.2D Graphics
17.SWT
18.SWT 2D Graphics
19.Network
20.Database
21.Hibernate
22.JPA
23.JSP
24.JSTL
25.Servlet
26.Web Services SOA
27.EJB3
28.Spring
29.PDF
30.Email
31.J2ME
32.J2EE Application
33.XML
34.Design Pattern
35.Log
36.Security
37.Apache Common
38.Ant
39.JUnit
Java Tutorial » Development » DateFormat 
6.13.DateFormat
6.13.1.Formatting and Parsing a Time for a Locale Using Default Formats
6.13.2.DateFormat.getTimeInstance(DateFormat.MEDIUM, Locale.CANADA).format(new Date())
6.13.3.DateFormat.getTimeInstance(DateFormat.LONG, Locale.CANADA).format(new Date())
6.13.4.DateFormat.getTimeInstance(DateFormat.FULL, Locale.CANADA).format(new Date())
6.13.5.DateFormat.getTimeInstance(DateFormat.DEFAULT, Locale.CANADA).format(new Date())
6.13.6.Parse date string input with DateFormat.getTimeInstance(DateFormat.DEFAULT, Locale.CANADA)
6.13.7.Formatting and Parsing a Time for a Locale: specify the locale when creating the SimpleDateFormat object.
6.13.8.Format with a default format
6.13.9.Convert string date to long value
6.13.10.Format a date-time value:short, medium and long
6.13.11.Convert Date to String
6.13.12.Validate a date Using DateFormat
6.13.13.Format date in Default format
6.13.14.Format date in Full format
6.13.15.Format date in Long format
6.13.16.Format date in Medium format
6.13.17.Find the current date format
6.13.18.DateFormat.SHORT
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.