Date.ValueOf(String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Converts a string in JDBC date escape format to
a Date
value.
[Android.Runtime.Register("valueOf", "(Ljava/lang/String;)Ljava/sql/Date;", "")]
public static Java.Sql.Date? ValueOf (string? s);
[<Android.Runtime.Register("valueOf", "(Ljava/lang/String;)Ljava/sql/Date;", "")>]
static member ValueOf : string -> Java.Sql.Date
Parameters
- s
- String
a String
object representing a date in
in the format "yyyy-[m]m-[d]d". The leading zero for mm
and dd
may also be omitted.
Returns
a java.sql.Date
object representing the
given date
- Attributes
Exceptions
if the format of the supplied string does not match the SQL format.
Remarks
Converts a string in JDBC date escape format to a Date
value.
Java documentation for java.sql.Date.valueOf(java.lang.String)
.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.