changed date-time

changed date-time function without directive