     JSON.parse x
   )
 
-# params: date, child
+# params: time, child
+retrieveDay = (params) =>
+  # date: m/dd/yyyy, gets the last 7 days
+  startDate = moment(params.time).format('MM/DD/YYYY')
+  makeBabyConnectRequest({
+    url: 'http://www.baby-connect.com/GetCmd?cmd=StatusExport&kid=' + params.child.id+ '&exportType=0&dt=' + startDate
+  })
+
+# params: time, child
 retrieveWeek = (params) =>
   # date: m/dd/yyyy, gets the last 7 days
   startDate = moment(params.time).format('MM/DD/YYYY')

    _.assign(params, {function: update})
    if s.match /month/
      _.assign(params, {span: 'month'})
    else
      _.assign(params, {span: 'week'})
  else if s.match /update last week/
    params.time.subtract(1, 'week').endOf('week')
    _.assign(params, {function: update, span: 'week'})
  else if s.match /update month/
    _.assign(params, {function: update, span: 'month'})
  else if s.match /update last month/
    params.time.subtract(1, 'month').startOf('month')
    _.assign(params, {function: update, span: 'month'})
  else if s.match /drank/
    params.function = logSupplement
    if matches = s.match(/([.0-9]+) oz/)

    fs.writeFile(DATA_FILE, y)

update = (params) ->
  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}))
  )
