SgDate updated to support min,max