All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:
<
telerik:RadDateTimePicker
ID
=
"raddatetimeFutureDate"
runat
"server"
ClientEvents-OnDateSelected
"CountDown"
>
</
<script type=
"text/javascript"
function
CountDown(sender,args) {
var
todayDate =
new
Date();
//current date
futureDate =
Date(args.get_newDate());
futureDate.setHours(10, 25, 10, 10);
timeDiff = Math.abs(futureDate.getTime() - todayDate.getTime());
CountDays = Math.ceil(timeDiff / (1000 * 3600 * 24));
CountHours = Math.abs(todayDate.getHours() - futureDate.getHours());
CountMinutes = Math.abs(todayDate.getMinutes() - futureDate.getMinutes());
alert(
"Time Remaining is "
+ CountDays +
" days "
+ CountHours +
" hours and "
+ CountMinutes +
"miutes"
);
}
</script>