Home Notices Documents Classes Download Others Rice
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

1:

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

Notes

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

Links for reference

Copyright © Rice All rights reserved.