Postgres Date To String Javascript Methods And Functions