The 100 above represents the date 100 days later, you can modify it. Date.getTime() in JS can only support dates after 1970.01.01; and the month is 0 - 11, which is a bit different, so avoid it. Of course you can also calculate dates after a specific date.
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn