Getting a valid date from the given string according to the format '%d,%m,%Y':
Valid date
2009-05-18