Where do you want to do this? The format you showed can only be done in SQL yet you assigned the result to what looks like a stage variable. If it is SQL then you need to convert your string to_date; if in DataStage you would need to explain exactly what you are trying to achieve.