How to convert calendar date to julian using tmap.
Hi, Could you help with converting calendar date to Juilan using tmap processing. I am reading data using tmssqlinput and going to insert data in JDE using AS400. I attached a screenshot of source data and data, audo date need to be converted in to julian date. Help would be appreciated.! Thanks Pranav
If I look at the code of the link,
I can see :
dayS = unformattedDate.substring(0,2);
monthS = unformattedDate.substring(3, 5);
yearS = unformattedDate.substring(6, 10);
So actually, the format date is DD/MM/YYYY
You can try with your format, but I think it'll need to be DD/MM/YYYY format.
You should convert it.
Hi, I found one code in our Routine and when i used in a job, i got following error. Exception in component tMSSqlInput_1 java.lang.StringIndexOutOfBoundsException: String index out of range: -1 at java.lang.String.substring(Unknown Source) Code public static String getJDEJulianDate(String CalendarDate_MMddyyyy) { String strYYY = ""; int intdays = 0; String strJulianDate = "";