fix formdate, removed unnessary app variable