Postgresql Convert Date To String Php