com.hoiio.sdk.util
Class DateUtil
java.lang.Object
com.hoiio.sdk.util.DateUtil
public class DateUtil
- extends Object
DateUtil
public DateUtil()
dateToString
public static String dateToString(Date date)
- Converts the
date
to String
- Parameters:
date
- The Date
object
- Returns:
- The date in this format "yyyy-MM-dd HH:mm:ss"
stringToDateTime
public static Date stringToDateTime(String dateString)
throws HoiioException
- Converts the @{code String} in date/time format to
Date
- Parameters:
dateString
- The date in this format "yyyy-MM-dd HH:mm:ss"
- Returns:
- The
Date
object
- Throws:
HoiioException
stringToDate
public static Date stringToDate(String dateString)
throws HoiioException
- Converts the @{code String} in date format to
Date
- Parameters:
dateString
- The date in this format "yyyy-MM-dd"
- Returns:
- The
Date
object
- Throws:
HoiioException