Could you please give more details about your needs?
Are your input and output fields date or string datatypes?
If both fields are date datatype, then you shouldn't need transformations.
If both fields are string datatype, then you could try a simpler approach removing all characters after the 19th position (not the 18th as you tried on your expressions).
Hope that helps.
Thanks Lluis, it worked both inputs are string type.