1)

Which function converts a type to date-time structures in C#?


A) ToString

B) ToSingle

C) ToChar

D) ToDateTime

Answer:

Option D

Explanation:

ToDateTime() method converts a type (integer or string type) to date-time.