Changed date representation to Long integer