Z
Zeng
Hi,
Is there a way to parse datetime in string with following possible formats
into a DateTime object?
- MM/DD/YYYY
- MM/DD/YY
- MM/YY
- MM/YYYY
This line of code would throw if I pass "08/03"
DateTime result = DateTime.Parse( s );
Thanks!
Is there a way to parse datetime in string with following possible formats
into a DateTime object?
- MM/DD/YYYY
- MM/DD/YY
- MM/YY
- MM/YYYY
This line of code would throw if I pass "08/03"
DateTime result = DateTime.Parse( s );
Thanks!