Add support for date represented as long