hi all,
i am generating the current date on my
jsp page by doing something like this.
<script language="javascript">
function start()
{
function makeArray() {
for (i = 0; i<makeArray.arguments.length; i++)
this[i + 1] = makeArray.arguments[i];
}
var months = new makeArray('January','February','March',
'April','May','June','July','August','September',
'October','November','December');
var date = new Date();
var day = date.getDate();
var month = date.getMonth() + 1;
var yy = date.getYear();
var year = (yy < 1000) ? yy + 1900 : yy;
fulldate=months[month]+" "+day+ "," + " " + year;
return fulldate;
}
</script>
and i am getting the date on the page by calling the function like this
<body>
<script language=javascript>
var date=start();
document.write(date);
</script>
</body>
this is working fine.now the problem is,the date which i am getting is my system date.if i change the date of my system,then that changed date is comming.i want the actual date to be displayed irrespective of the system date because the date plays a crucial role in my application.
pls can anybody help me to solve this problem.
Jyothsna