Home > Contents > Index >
Utilities.calendarFromJDBCString
Returns a calendar object from JDBC date/time.
Syntax
public static Calendar calendarFromJDBCString(String str)Parameters
str
- String in the form "YYYY-MM-DD HH:MM:SS". HH is in 24-hour format.
Returns
Returns the appropriate calendar object.
Example
The following method assigns the date (August 31, 2002) and time (one second before midnight) to a
Calendar
object namedcal
:
Calendar cal = Utilities.calendarFromJDBCString( "2002-08-31 23:59:59" );See Also
jdbcDateFromCal , jdbcTimeFrom
Home > Contents > Index > ![]()
Oracle JAVA Reference
Copyright (c) 2013, 2018, Oracle and/or its affiliates. All rights reserved.