Kevin
Kevin

Reputation: 117

Convert String to DateTime?

How can I convert this string, 12:00 AM, into a DateTime?

Upvotes: 0

Views: 430

Answers (1)

ChaosPandion
ChaosPandion

Reputation: 78282

DateTime.Parse("12:00AM");

NOTE:

The date part will be the current date.

Upvotes: 1

Related Questions