fixed date parse rule
fixed crash when device is rotated
protected against out of bound