created date functions

functions to convert mysql date string