We are using the dateTrans function in SAP Cloud Integration (CPI) to convert a datetime value from the format:
yyyy-MM-dd HH:mm:ss
to:
yyyy-MM-dd
However, the dateTrans function is producing an incorrect output.
Input
2026-10-07 18:15:00
Expected Output
2026-10-07
Actual Output
2027-03-07
The input date is being converted to a completely different date, even though the expected behavior is only to remove the time portion and retain the date.
Steps to Reproduce
dateTrans function for date conversion.2026-10-07 18:15:00
yyyy-MM-dd HH:mm:ss to: yyyy-MM-dd
Request clarification before answering.
| User | Count |
|---|---|
| 7 | |
| 6 | |
| 4 | |
| 3 | |
| 3 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.