In a C# 2008 application, I am obtaining a data from a web service via an xml file. In some instance a field is not a must not be a valid datetime value for a sql server 2008 r2 database.
Thus can you tell me:
1. what check I can do to make certain the value is in a valid date time format?
2. Also can you tell me how to convert the value to a valid datetime format?
Answers (2)
0
At the beginner level, usually the best method is nothing. There is a lot of experience and development done for C# and .Net. Therefore it is unlikely you need to do anything; it is probably done for you quite well.
So you need to be more specific about what you are asking. In what situation do you think you need to explicitly dispose objects?
Accepted