     fs.writeFile(DATA_FILE, y)
 
 update = (params) ->
-  retrieveFunction = if params.span == 'week' then retrieveWeek else retrieveMonth
+  if params.span == 'week'
+    retrieveFunction = retrieveWeek
+  else if params.span == 'day' || params.span == 'date'
+    retrieveFunction = retrieveDay
+  else
+    retrieveFunction = retrieveMonth
   retrieveFunction(params).then((body) =>
     cacheData(csv.fromString(body, {headers: true}))
   )

  p = {child: config.babyConnect.kids.main}
  executeCommand(process.argv[2], p).then (result) =>
    console.log result

    base.subtract(1, 'week').endOf('week')
  if s.match /last month/
    base.subtract(1, 'month').startOf('month')
  if s.match /yesterday/
    base.subtract(1, 'day')
  if matches = s.match /([0-9]+) weeks? ago/
    base.subtract(+matches[1], 'week').endOf('week')
  if matches = s.match /([0-9]+) months? ago/
