Update date convert logic.