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
Class | Name | Description |
conversionString | string | String that can convert to datetime. |
Return value
Class | Description |
datetime | A 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.