what am trying to ask is,i want to update a website weekly eg; 01/01/03 the next week it should be updated to 08/01/03 i need to display the date and day of that week liek this day date mon 01/01/03 . . . . the next week it should show like this dynamically day mon 08/01/03 .. .. .. .. .. ..
If your question boils down to how to figure out if today is Monday, try this:
On the other hand, if you're asking how to update your website, that depends a lot on your website! And before you ask, yes, in fact, the Gregorian Calendar is named after me.
thanks guys but when a person enters that page ,the next week it should dynamically change it date.. think u guys got what i said.. the date should be changing every week dynamically.
senthil, Why do you want to use Java to do this? A simple web page could become complicated this way. Why don't you just use JavaScript to do it? No Java involved. I think the JavaScript for that is just: today = new Date();
"JavaRanch, where the deer and the Certified play" - David O'Meara
Date dt = new Date() we would get the current date only,. but what i need is if a user enter a page that page should show the current week i.e days and its date... and this should change dynamically every week,when the user clicks the same page...