Menu
Topics Index
...
`
SimpleDateFormat is a concrete class for formatting and parsing dates in a locale-sensitive manner. It allows for formatting (date -> text), parsing (text -> date), and normalization.

Constructor
Description
SimpleDateFormat()
Constructs a SimpleDateFormat using the default pattern and date format symbols for the default locale.
SimpleDateFormat(String pattern)
Constructs a SimpleDateFormat using the given pattern and the default date format symbols for the default locale.
SimpleDateFormat(String pattern, DateFormatSymbols formatSymbols)
Constructs a SimpleDateFormat using the given pattern and date format symbols.
SimpleDateFormat(String pattern, Locale locale)
Constructs a SimpleDateFormat using the given pattern and the default date format symbols for the given locale.
The methods are listed below :
Date parse(String text, ParsePosition pos))
public StringBuffer format(Date date, StringBuffer toAppendTo, FieldPosition pos)

0
Wrong
Score more than 2 points

© meritcampus 2019

All Rights Reserved.

Open In App