| Real'sHowTo |
|
|
Custom Search
|
Date and Time HowTo
- Have year on 4 digits from a Date object
- Get the current Date and Time
- Compute days between 2 dates
- Get the number of days in a month
- Validate a date
- Determine the day of the week
- Add/Substract Day/Month/Year to a Date
- Get the correct TimeZone on DateFormat
- Simply format a date as "YYYYMMDD"
- Compare 2 dates
- Parse a String to obtain a Date/GregorianCalendar object
- Use System time to generate unique ID
- Get the day name
- Find the date format pattern
- Get a julian date
- Calculate the age
- Format a duration in milliseconds into a human-readable format
- Get the atomic time
- Get a date interval
- Determine if a given hour is between an interval
- Set the computer clock (JNI)
- Get unique numerical id based on the system time
- Get the month (or day) name (localized)
- Detect a leap year
Date and Time HowTo
Written and compiled by Réal Gagnon ©1998-2013
[ home ]