At 12:18 6/8/2004 -0400, you wrote:
>Hey, so I have a totally newbie .NET question, that clearly would be better
>suited for the DOTNET-TALK list but I might as well ask here ;-)
>
>I'm trying to compare two dates that a user enters into a text box.  I would
>like to convert the text (after validation that it's a proper date) into the
>yyyymmdd format and then compare the start and end dates as integers to make
>sure that the end date is >= the starting date..  I've never been able to
>convert a string to an int.  How would I do this?
>
>This line gives me specified cast is not valid (trying to cast two
>stringbuilder objects to ints).
>if (Convert.ToInt32(stbBeginDate) > Convert.ToInt32(stbEndDate)) {
>
>....
>
>}

This is supposed to be C#?  What does the '>' stand for?
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Reply via email to