       element.setIndividualPeriods()
 
       fakePeriodDisable(element, disabledPeriod)
-      element.setDueAt(new Date(dayAfter), anotherPeriod)
-      element.setDueAt(new Date(tomorrow), period)
+      element.setDueAt(getISODateString(dayAfter), anotherPeriod)
+      element.setDueAt(getISODateString(tomorrow), period)
 
       dueAt = TaskPlanStore.getDueAt(NEW_READING.id)
       expect(dueAt).to.not.be.ok
 
       dueAt = TaskPlanStore.getDueAt(NEW_READING.id, period.id)
-      expect(getDateString(dueAt)).to.be.equal(getDateString(tomorrow))
+      expect(getISODateString(dueAt)).to.be.equal(getISODateString(tomorrow))
 
   it 'sets the correct moment timezone on mount', ->
     courseId = COURSES[0].periods[0].id


      fakePeriodDisable(element, disabledPeriod)
      fakePeriodDisable(element, anotherDisabledPeriod)
      element.setOpensAt(new Date(dayAfter), period)

      opensAt = TaskPlanStore.getOpensAt(NEW_READING.id)
      expect(opensAt).to.not.be.ok

      opensAt = TaskPlanStore.getOpensAt(NEW_READING.id, period.id)
      expect(getDateString(opensAt)).to.be.equal(getDateString(dayAfter))

  it 'can update due date for individual period', ->
    period = COURSES[0].periods[0]

      element.setIndividualPeriods()

      #set due dates to be different
      element.setDueAt(getISODateString(tomorrow), firstPeriod)
      element.setDueAt(getISODateString(dayAfter), secondPeriod)

      #set all periods
      element.setAllPeriods()

      #due at should reset to query string due at
      dueAt = TaskPlanStore.getDueAt(NEW_READING.id)
      expect(getISODateString(dueAt)).to.be.equal(getISODateString(dayAfter))

  it 'can update open date with date obj', ->
    helper(NEW_READING).then ({dom, element}) ->
      element.setOpensAt(getISODateString(dayAfter))
      opensAt = TaskPlanStore.getOpensAt(NEW_READING.id)
      expect(getISODateString(opensAt)).to.be.equal(getISODateString(dayAfter))

  it 'can update open date with string', ->
    helper(NEW_READING).then ({dom, element}) ->
      element.setOpensAt(getISODateString(tomorrow))
      opensAt = TaskPlanStore.getOpensAt(NEW_READING.id)
      expect(getISODateString(opensAt)).to.be.equal(getISODateString(tomorrow))

  it 'can update due date with date obj', ->
    helper(NEW_READING).then ({dom, element}) ->
      element.setDueAt(getISODateString(dayAfter))
      dueAt = TaskPlanStore.getDueAt(NEW_READING.id)
      expect(getISODateString(dueAt)).to.be.equal(getISODateString(dayAfter))

  it 'can update due date with string', ->
    helper(NEW_READING).then ({dom, element}) ->
      element.setDueAt(getISODateString(tomorrow))
      dueAt = TaskPlanStore.getDueAt(NEW_READING.id)
      expect(getISODateString(dueAt)).to.be.equal(getISODateString(tomorrow))

  it 'can disable individual periods', ->
    disabledPeriod = COURSES[0].periods[1]
