If i change your
Select DATE_FORMAT(date_time, '%b %e, %Y, %T') from table_name
to
Select DATE_FORMAT(now(), '%b %e, %Y, %T')
he will return Aug 21, 2012, 16:51:30.
You can do the same in Postgresql:
Select to_char(now(), 'Mon-dd-YYYY,HH24:MM:SS')
will return you Aug-21-2012,16:08:08
I hope your problem is sorted out.
source
share