SimpleDateFormat.SimpleDateFormat

SimpleDateFormat.SimpleDateFormat

Class Overview | Class Members | This Package | All Packages

Syntax 1
public SimpleDateFormat()
Description
Construct a SimpleDateFormat using the default pattern for the default locale. Note: Not all locales support SimpleDateFormat; for full generality, use the factory methods in the DateFormat class.

See Also
DateFormat



Syntax 2
public SimpleDateFormat( String pattern )
Description
Construct a SimpleDateFormat using the given pattern in the default locale. Note: Not all locales support SimpleDateFormat; for full generality, use the factory methods in the DateFormat class.



Syntax 3
public SimpleDateFormat( String pattern, Locale loc )
Description
Construct a SimpleDateFormat using the given pattern and locale. Note: Not all locales support SimpleDateFormat; for full generality, use the factory methods in the DateFormat class.



Syntax 4
public SimpleDateFormat( String pattern, DateFormatSymbols formatData )
Description
Construct a SimpleDateFormat using the given pattern and locale-specific symbol data.