How to check if 20 minutes have passed from current date?
For example:
var start = DateTime.Now; var oldDate = \"08/10/2011 23:50:31\"; if(start ?
Parse oldDate into a DateTime object (DateTime.Parse).
oldDate
DateTime
DateTime.Parse
Subtract the parsed date from start. This will return a TimeSpan.
start
TimeSpan
Inspect TotalMinutes.
TotalMinutes