Jump to content

More of a JS question...


AV1611

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 :(
Link to comment
https://forums.phpfreaks.com/topic/4624-more-of-a-js-question/
Share on other sites

Archived

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

×
×
  • Create New...

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.