<script type="text/javascript">
function getdates()
{
var today = new Date()
var priorDate = new Date();
priorDate.setDate(priorDate.getDate() - 25) //you can take any value
document.getElementById('lblCurrentDate').innerHTML = today;
document.getElementById('lblPreviousDate').innerHTML = priorDate;
}
</script>