using DateTime object instead of just echo out a generic time