bug fix on date, a getDate() method add in Global.java