Home > Contents > Index >
Utilities.jdbcDateFromCal
Returns a string containing JDBC-formatted date and time from a calendar object.
Syntax
public static final String jdbcDateFromCal(Calendar cal)Parameters
cal
- Input. Specify a calendar object.
Returns
Returns the JDBC-formatted string containing date and time.
Example
Calendar cal = Utilities.calendarFromJDBCString("2002-12-31 23:59:59"); String date = Utilities.jdbcDateFromCal(cal);See Also
calendarFromJDBCString , jdbcTimeFrom
Home > Contents > Index > ![]()
Oracle JAVA Reference
Copyright (c) 2013, 2018, Oracle and/or its affiliates. All rights reserved.