java.text.DateFormat class

java.text.DateFormat The DateFormat is an abstract class used for date time formatting. The date is represented as a Date object or as the milliseconds since January 1, 1970, 00:00:00 GMT. DateFormat Fields: protected Calendar calendar protected NumberFormat numberFormat public static final int ERA_FIELD public static final int YEAR_FIELD public static final int MONTH_FIELD public static … Read more

java util date class

java.util.Date The Date class is available in java.util package. It represents a specific instant in time with millisecond precision. Date class supports following two constructors: Date(): It initializes the object with the current date and time. Date(long millisec): initializes the object with the specified number of milliseconds since January 1, 1970, 00:00:00 GMT. Java Date … Read more