Name

new — Creates a new Date object

Synopsis

Date.new(value, fmt)

Description

#new creates a new Date object. If value is specified, it must be a String, a Time or another Ruby9i::Date.

If fmt is specified, it must be a valid Oracle date format string. It is stored in the instance variable default_fmt. If value is a String, it must match the specified format.