Create trim date or time