|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsteve.pums.assess.useful.DateFormatter
public class DateFormatter
Used for date/time formatting to make insertions into MySQL
Constructor Summary | |
---|---|
DateFormatter()
Creates a new instance of DateFormatter |
|
DateFormatter(java.util.Date origDate)
Creates a new instance of DateFormatter with initial date |
|
DateFormatter(java.lang.String origDateStr)
Creates a new instance of DateFormatter with initial date string |
Method Summary | |
---|---|
java.lang.String |
format()
Applies formatting to date |
java.lang.String |
timeformat(java.util.Date origDate)
Applies formatting to time |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DateFormatter()
public DateFormatter(java.lang.String origDateStr)
origDateStr
- Date string to be formattedpublic DateFormatter(java.util.Date origDate)
origDate
- Date to be formattedMethod Detail |
---|
public java.lang.String format() throws java.text.ParseException
java.text.ParseException
- As a result of parsing errorpublic java.lang.String timeformat(java.util.Date origDate) throws java.text.ParseException
origDate
- Time to be formatted
java.text.ParseException
- As a result of parsing error
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |