test toObject method by converting created_at date to DateTime object.
method to convert to DateTime object.