Home > Contents > Index >
Expanded TOC | Accordion TOC | Annotated TOC | Index
Utilities.sqlDate
Returns a string formatted as JDBC date/time from a calendar object.
Syntax
public static final String sqlDate(Calendar cal)Parameters
cal
- Calendar with date and time.
Returns
Returns the date and time in form YYYY-MM-DD HH:MM:SS.
Example
The following code writes the final second of 2002 into
dateStr
:Calendar cal = Utilities.calendarFromJDBCString("2002-12-31 23:59:59"); String dateStr = Utilities.sqlDate(cal);See Also
Home > Contents > Index > ![]()
FatWire JAVA Reference
Copyright 2005,2006,2007 by FatWire Software
All rights reserved.