public class DateUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static String |
convertDateToString(org.joda.time.DateTime date)
Helper method to convert the date to string
|
static String |
convertSqlTimestampToString(Timestamp timestamp)
Helper method to convert java.sql.Timestamp to String
|
static org.joda.time.DateTime |
convertStringToDate(String date)
Helper method to convert the date from the xml to date
|
static org.joda.time.DateTime |
convertStringWithOffsetToDate(String date) |
public static String convertDateToString(org.joda.time.DateTime date)
date - the Joda DateTime objectpublic static String convertSqlTimestampToString(Timestamp timestamp)
timestamp - the Joda Timestamppublic static org.joda.time.DateTime convertStringToDate(String date)
date - the date string.public static org.joda.time.DateTime convertStringWithOffsetToDate(String date)
Copyright © 2017. All rights reserved.