• default day yesterday:
    new Date(new Date().getTime()-24*60*60*1000)
  • current timestamp:
    new java.sql.Timestamp(System.currentTimeMillis())