org.formaria.sql
Class DateUtilities

java.lang.Object
  extended by org.formaria.sql.DateUtilities

public class DateUtilities
extends java.lang.Object

Date utilities for use with SQL queries

Copyright (c) Formaria Ltd., 2008, This software is licensed under the GNU Public License (GPL), please see license.txt for more details. If you make commercial use of this software you must purchase a commercial license from Formaria.

$Revision: 1.4 $


Constructor Summary
DateUtilities()
           
 
Method Summary
static java.lang.String formatDate(java.util.Date d)
          Return a string representing the date in the "dd-MM-yyyy" format
static java.lang.String formatDate(java.lang.String d)
          Converts a string representation of the date in long format to the "dd-MM-yyyy" string representation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DateUtilities

public DateUtilities()
Method Detail

formatDate

public static java.lang.String formatDate(java.util.Date d)
Return a string representing the date in the "dd-MM-yyyy" format

Parameters:
d - the raw date value
Returns:
the formatted date string

formatDate

public static java.lang.String formatDate(java.lang.String d)
Converts a string representation of the date in long format to the "dd-MM-yyyy" string representation

Parameters:
d - the raw date string
Returns:
the formatted date string