This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes HTML, CSS and JavaScript and the fly likes get day before date in javascript Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Reply Bookmark "get day before date in javascript" Watch "get day before date in javascript" New topic
Author

get day before date in javascript

Muhammad Imad Qureshi
Ranch Hand

Joined: Sep 13, 2005
Posts: 238
I have following function

now = new Date () ;
cal.addDisabledDates(null, formatDate(now,"yyyy-MM-dd")) ;

what it does is disables the dates upto the date provided to format date i.e "now" in this case. I want to disable the dates upto the day before. how do i do that.

Thanks
Imad
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15357
    
    6
getDate() and setDate()

Eric
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: get day before date in javascript
 
Similar Threads
Date difference
FAQ - Everything you ever wanted to know about dates
want to get day
convert text object to date where date-format is dynamic
Javascript Yesterday's Date