fixed date format bug. Added simple utility methods