No longer use the strtotime function for converting dates

The strtotime function was converting a date from one calendar type, to another,
but when converting it back it would result in a different date than what we
began with. See comment in MDL-41792.