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 © Cooker All rights reserved.