Step-by-Step 1 – Explore Functions

This module also shows how to calculate how many days and/or hours there are between time/date selections from two user controls. If you want to calculate the # days between two user-selected dates then you need a timespan variable, two calendar controls, or two textboxes with their .selectionmode set to date or datetime or datetime local, or ... ................
................