W
Worker
Hi , i`ve been wondering how many days do you guys need to read an average
asp.net programming book, answer honestly please, for example 800 pages big,
how many pages a day? I just wanna see if i m reading too slow...
I d ask another question, i have a simple function from my latest book here
and the authors of "Wrox Beginning Asp.net with c#" were not to eager to
explain the meanings of the theory of code they used in their example so i
guess i should figure it out on my own, maybe with the help from a good
soul,
So there are some confusions in the function which i d appreciate being
clarified,
The code first...
private DateTime GetSafeDate(string proposedDate)
{
// Returns a non-null DateTime even if proposed date can't be parsed
DateTime safeDate;
try {
safeDate = DateTime.Parse(proposedDate,
DateTimeFormatInfo.InvariantInfo);
} catch (Exception e) {
Response.Write("<!-- Failed to parse date: " + e.Message + " -->");
safeDate = DateTime.MinValue;
}
return safeDate;
}
What i m confused about is the "DateTime.Parse" which seems like a property
of an object or something, i know DateTime is a type of variable but i m not
sure what this means here,
Also, the "DateTimeFormatInfo.InvariantInfo" is not too clear to me either,
do you have any idea?
Thats it,
Thanx!
asp.net programming book, answer honestly please, for example 800 pages big,
how many pages a day? I just wanna see if i m reading too slow...
I d ask another question, i have a simple function from my latest book here
and the authors of "Wrox Beginning Asp.net with c#" were not to eager to
explain the meanings of the theory of code they used in their example so i
guess i should figure it out on my own, maybe with the help from a good
soul,
So there are some confusions in the function which i d appreciate being
clarified,
The code first...
private DateTime GetSafeDate(string proposedDate)
{
// Returns a non-null DateTime even if proposed date can't be parsed
DateTime safeDate;
try {
safeDate = DateTime.Parse(proposedDate,
DateTimeFormatInfo.InvariantInfo);
} catch (Exception e) {
Response.Write("<!-- Failed to parse date: " + e.Message + " -->");
safeDate = DateTime.MinValue;
}
return safeDate;
}
What i m confused about is the "DateTime.Parse" which seems like a property
of an object or something, i know DateTime is a type of variable but i m not
sure what this means here,
Also, the "DateTimeFormatInfo.InvariantInfo" is not too clear to me either,
do you have any idea?
Thats it,
Thanx!