Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi! I use TalendDate.formatDate to pull the Year out of a Date however for all December dates in 2015 (i.e 2015-12-29) it is assigning a 2016 year? how is this happening, how can I fix it?
Actually forget that, the problem is your "YYYY". It should be "yyyy". Try that. This should explain it .....
http://docs.oracle.com/javase/7/docs/api/java/text/SimpleDateFormat.html
Can you show us your code?
TalendDate.formatDate("YYYY",row1.ship_date)
This *could* be a timezone calculation issue. Try using formatDateInUTC and see if that solves your issue.
Actually forget that, the problem is your "YYYY". It should be "yyyy". Try that. This should explain it .....
http://docs.oracle.com/javase/7/docs/api/java/text/SimpleDateFormat.html