Skip to content

when you do var dt2=dt1.next().sunday(), dt1 itself changes to next sunday #188

Description

@GoogleCodeExporter
Windows 8.1, Chrome Version 35 
Take the following code

var dt1 = Date.today();
alert(dt1.toString("MM/dd/yyyy"));
var dt2 = dt1.next().sunday();
alert(dt1.toString("MM/dd/yyyy"));

The first alert displays today's date. The second alert now displays this 
Sunday's date. dt1's value is being reassigned which is not expected.

Original issue reported on code.google.com by m3mac...@gmail.com on 22 Jun 2014 at 3:17

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions