Format election date in Election model function