fr.paris.lutece.plugins.form.utils
Class DateUtils

java.lang.Object
  extended by fr.paris.lutece.plugins.form.utils.DateUtils

public class DateUtils
extends java.lang.Object

DateUtils


Method Summary
static java.sql.Timestamp formatTimestamp(java.lang.String strTimestamp, java.util.Locale locale)
          Format a String into a timestamp
static java.lang.String getCurrentDateTime(java.util.Locale locale)
          Get the current date time
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getCurrentDateTime

public static java.lang.String getCurrentDateTime(java.util.Locale locale)
Get the current date time

Parameters:
locale - the locale
Returns:
the current date as String

formatTimestamp

public static java.sql.Timestamp formatTimestamp(java.lang.String strTimestamp,
                                                 java.util.Locale locale)
Format a String into a timestamp

Parameters:
strTimestamp - the String to format
locale - the locale
Returns:
a Timestamp


Copyright © 2012 Mairie de Paris. All Rights Reserved.