Home Cooker Classes Others Rice CookerGX
Classes  >  datetime  >  datetime(string)
datetime class : datetime(string) fitter

Description

Return the datetime type instance that initialized with a string that can convert to datetime.

Syntax

new datetime(string conversionString)

Arguments

ClassNameDescription
conversionStringstringString that can convert to datetime.

Return value

ClassDescription
datetimeA datetime type instance that is initialized.

Sample code

datetime dt = new datetime("2016/03/04 04:13:00");

Notes

This fitter has used the System.DateTime.Parse(String).

Links for reference

Copyright © Rice All rights reserved.