Click here to Skip to main content
15,889,281 members

Comments by Bryan Tubbs (Top 1 by date)

Bryan Tubbs 28-Dec-15 10:26am View    
The DateTime.TryParse actually takes two parameters and would be called as: DateTime.TryParse(Request.Form["BuyBetweenDatesTo"], out buyBetweenDatesTo).

You would need to define the output parameter. Or you could possibly just use the model -- entity.BuyBetweenDatesTo. If the parse was successful, it would go directly into your model.