DateFormat Class
getInstance

Format()

getDateTimeInstance

FULL

getDateInstance

LONG

getDateInstance(constant,loc
ale)

MEDIUM

getTimeInstance

SHORT

getTimeInstance
(constant,locale))

DEFAULT
getInstance
method : getInstance ();
return type : DateFormat
special : static
content :
Object
DateFormat
example : DateFormat
date_format =
DateFormat.getInstance ();
getDateTimeInstance
method : getDateTimeInstanc
e ();
return type : DateFormat
special : static
content :
Object
DateFormat

example : DateFormat
date_format =
DateFormat.getDateTimeInstance
getDateInstance
method : getDateInstance ();
return type : DateFormat
special : static
content :
Object
DateFormat
example : DateFormat
date_format =
DateFormat.getDateInstance ();
getDateInstance(constant,loc
ale)
method : getDateInstance (
constant, locale );
return type : getDateInstance
special : static
content :
Object
DateFormat

example : Locale locale = new
Locale ( "th", "TH" ); DateFormat
date_format =
getTimeInstance
method : getTimeInstance ();
return type : DateFormat
special : static
content :
Object
DateFormat
example : DateFormat
date_format =
DateFormat.getTimeInstance ();
getTimeInstance
(constant,locale))
method : getTimeInstance (
constant, locale );
return type : DateFormat
special : static
content :
Object
DateFormat

example : Locale locale = new
Locale ( "th", "TH" ); DateFormat
date_format =
Format()
method : format (
object_date );
return type : String
content :
example : DateFormat
date_format =
DateFormat.getInstance (); String
str_datetime =
date_format.format ( new Date ()
FULL
property : FULL;
return type : int
special : static
content :
example : Locale locale = new
Locale ( "th", "TH" ); DateFormat
date_format =
DateFormat.getDateInstance (
DateFormat.FULL, locale );
LONG
property : LONG;
return type : int
special : static
content :
example : Locale locale = new
Locale ( "th", "TH" ); DateFormat
date_format =
DateFormat.getDateInstance (
DateFormat.LONG, locale );
MEDIUM
property : MEDIUM;
return type : int
special : static
content :
example : Locale locale = new
Locale ( "th", "TH" ); DateFormat
date_format =
DateFormat.getDateInstance (
DateFormat.MEDIUM, locale );
SHORT
property : SHORT;
return type : int
special : static
content :
example : Locale locale = new
Locale ( "th", "TH" ); DateFormat
date_format =
DateFormat.getDateInstance (
DateFormat.SHORT, locale );
DEFAULT
property : DEFAULT;
return type : int
special : static
content :
example : Locale locale = new
Locale ( "th", "TH" ); DateFormat
date_format =
DateFormat.getDateInstance (
DateFormat.DEFAULT, locale );

Date formatclass