
Contributor III
2023-04-17
04:09 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
How to subtract a date in a column with one day ?
Dear Team, @Xiaodi Shi @Shicong Hong @TRF
Could you please help out to solve this requirement ? I would like to subtract a day from a date column.
DATE -1
For ex:
INPUT
1992-04-26 15:03:22
REQUIRED OUTPUT:
1992-04-25 15:03:22
Thanks in advance.
743 Views
1 Solution
Accepted Solutions

Contributor II
2023-04-17
04:54 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi there,
you can use "add date" function in tmap.
In tMap use like this :- TalendDate.addDate(date_column,-1,"dd").
Here if you use "-1" as "days" and it will subtract date. do this and try it.
743 Views
1 Reply

Contributor II
2023-04-17
04:54 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi there,
you can use "add date" function in tmap.
In tMap use like this :- TalendDate.addDate(date_column,-1,"dd").
Here if you use "-1" as "days" and it will subtract date. do this and try it.
744 Views
