trim text on date time