captbaritone / captbaritone/datejs

Add a year (365 or 366 days) to de current day

Open
#146 0 comments 0 reactions 0 assignees View on GitHub
auto-migrated Priority-Medium Type-Defect
Dominant language
JavaScript
Stars
1
Forks
0
PR merge metrics
No merged PRs in 30d

Description

```
What steps will reproduce the problem?
var start = Date.today();
var end = Date.parse(start, "d-MMM-yyyy");
end.addYears(1); //one year later
console.log(end);

What is the expected output? What do you see instead?
the difference between 'start' and 'end' should be 365 or 366 days, depending
of the year, leap year or not.

What version of the product are you using? On what operating system?
version: Nov 2007

Please provide any additional information below.

Should I add days manually? Why is not working addYears(1) ??

Thanks in advance

```

Original issue reported on code.google.com by `jose.ros...@gmail.com` on 27 Feb 2012 at 12:13

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.