Please note that timestamp is considered to be UTC and date is usually your local date, so a time zone specification is necessary for a proper conversion, see for instance ABAP-doc for statement "CONVERT TIME STAMP ..."; and then it is impossible to get the correct result using any combination of cast and substring or the like.
↧