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

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

public final class DateUtils
extends Object

DateUtils


Method Summary
static Timestamp formatTimestamp(String strTimestamp, Locale locale)
          Format a String into a timestamp
static String getCurrentDateTime(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 String getCurrentDateTime(Locale locale)
Get the current date time

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

formatTimestamp

public static Timestamp formatTimestamp(String strTimestamp,
                                        Locale locale)
Format a String into a timestamp

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


Copyright © 2013 Mairie de Paris. All Rights Reserved.