Jump to content

Archived

This topic is now archived and is closed to further replies.

AV1611

More of a JS question...

Recommended Posts

n/m:
[code]
var Today = new Date()
Today.setDate(-365)
[/code]

I don't know JS... I have an idea of how to "tweek" this with PHP, but if someone gives me the JS answer, I'd rather have it..

[code]
var Today = new Date();
[/code]

I need var Today to = Date() MINUS 265 days...

I know how to do it in PHP, but know know how to send it to the JS script, and I have know idea how to do it in native JS...

It's easy, but not for me :(

Share this post


Link to post
Share on other sites
Actually, I didn't really fix it... but now it's working...

I discovered the setYear()

It works better for what I did...

Thanks anyways...

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.