rsramanujam.util
Class RSRDateUtil
java.lang.Object
|
+--rsramanujam.util.RSRDateUtil
- public class RSRDateUtil
- extends java.lang.Object
Single top level utility class that defines the methods needed to
manipulate dates
- Version:
- 1.0.0
Kamadhenu, an open source repository of user intercace and support utility components
Copyright (C) 2002 R Sadagopa Ramanujam
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
R Sadagopa Ramanujam
|
Constructor Summary |
RSRDateUtil()
RSRDateUtil constructor. |
|
Method Summary |
java.sql.Date |
convertStringToSQLDate(java.lang.String strDate,
java.lang.String delimiter)
This method returns a SQL Date from a String. |
java.util.Date |
convertStringToUtilDate(java.lang.String strDate,
java.lang.String delimiter)
This method returns a Util Date from a String. |
java.sql.Date |
convertUtilDateToSQLDate(java.util.Date date)
Utility method to convert a java.util.Date object to a java.sql.Date object
Creation date: (9/26/2002 11:43:00 AM) |
java.lang.String |
convertUtilDateToString(java.util.Date date)
Converts a UTIL Date to String in the mm-dd-yyyy format
Creation date: (9/26/2002 11:50:29 AM) |
| Methods inherited from class java.lang.Object |
,
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
registerNatives,
toString,
wait,
wait,
wait |
RSRDateUtil
public RSRDateUtil()
- RSRDateUtil constructor.
convertStringToSQLDate
public java.sql.Date convertStringToSQLDate(java.lang.String strDate,
java.lang.String delimiter)
- This method returns a SQL Date from a String.
Creation date: (9/26/2002 12:48:17 PM)
- Parameters:
strDate - java.lang.Stringdelimiter - java.lang.String- Returns:
- java.util.Date
convertStringToUtilDate
public java.util.Date convertStringToUtilDate(java.lang.String strDate,
java.lang.String delimiter)
- This method returns a Util Date from a String.
Creation date: (9/26/2002 12:48:17 PM)
- Parameters:
strDate - java.lang.Stringdelimiter - java.lang.String- Returns:
- java.util.Date
convertUtilDateToSQLDate
public java.sql.Date convertUtilDateToSQLDate(java.util.Date date)
- Utility method to convert a java.util.Date object to a java.sql.Date object
Creation date: (9/26/2002 11:43:00 AM)
- Parameters:
date - java.util.Date- Returns:
- java.sql.Date
convertUtilDateToString
public java.lang.String convertUtilDateToString(java.util.Date date)
- Converts a UTIL Date to String in the mm-dd-yyyy format
Creation date: (9/26/2002 11:50:29 AM)
- Parameters:
date - java.util.Date- Returns:
- java.lang.String