Hi SCG,
The answer depends upon what you plan to use for the page, HTML, ASP, or ASP.Net
In HTML you'll need to use either CGI or JavaScript at the client the latter being the easiest.
<script>
function dateDiff(startDate,stopDate) {
var startDate = new Date(startDate);
var stopDate = new Date(stopDate);
var days = (stopDate-startDate) / 1000/60/60/24;
alert(days);
}
</script>
<form>
<input type="text" value="1/1/2006" name="startDate" >
<input type="text" value="1/20/2006" name="stopDate" >
<input type=button onclick="dateDiff(this.form.startDate.value,this.form.stopDate.value);" value="click" >
</form>
The above will display an alert box with the number of days.