handlings dates in javascript


I am practicing some JS and have the following question:

An invoice is due and payable in 90 days. Write a function that will display that

I have got as far as the following code however of course this just returns a number.

var now = new Date();
invoice_date = now.getDate()+90;

Can someone advise the best way to manage this?
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Gurvinder Pal SinghCommented:
check this

var d=new Date();
var milliseconds = d.getTime() + (90*24*60*60*1000);
document.write(new Date(milliseconds));
This returns full date:

<script type="text/javascript">
var myDate=new Date();
jecommeraAuthor Commented:
Can I get it as just month and date

Determine the Perfect Price for Your IT Services

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden with our free interactive tool and use it to determine the right price for your IT services. Download your free eBook now!

Gurvinder Pal SinghCommented:
var d=new Date();
var newDate = new Date( d.getTime() + (90*24*60*60*1000) );
document.write( newDate.getMonth() + " " + newDate.getDate());

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Here it is:

<script type="text/javascript">
var myDate=new Date();

document.write(myDate + "<br/>");
document.write(myDate.getMonth() + "<br/>");


Open in new window

HonorGodSoftware EngineerCommented:
This article may also be of interest: http://e-e.com/A_484-Can-I-have-a-date.html
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.