changed date representation to DateTime object instead of string