proper date formatting for API key generation time