modification on the date format, and correction the sldisable function