Change date parsing to be able to use it in Android