com.hoiio.sdk.util
Class DateUtil

java.lang.Object
  extended by com.hoiio.sdk.util.DateUtil

public class DateUtil
extends Object


Constructor Summary
DateUtil()
           
 
Method Summary
static String dateToString(Date date)
          Converts the date to String
static Date stringToDate(String dateString)
          Converts the @{code String} in date format to Date
static Date stringToDateTime(String dateString)
          Converts the @{code String} in date/time format to Date
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DateUtil

public DateUtil()
Method Detail

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