title: strftime in sqlite convert to postgres
body: <p>I came across a function in sqlite that I need to convert to postgres syntax. It's <code>date(date, '-'||strftime('%w',date)||' days')</code>.</p>
  
  <p>Can anyone help me convert this sqlite segment to postgres?</p>