Excel Date value differs in Generation Mode

Five Stars

Excel Date value differs in Generation Mode

Hello,

I am reading date column and also a custom format date column value from excel as String and I get different values based on the generation mode I select. 

Can someone help me with, what is the proper way to read date column? I understand the usage of TalendDate::format() and parse() methods. 

I am processing a large excel file, so the generation mode has to be event mode.

I have attached sample excel file, job is very simple and all columns are read as string

tReadFileExcel  ------->  tLogRow

I am using DI 6.3.1

Highlighted
Moderator

Re: Excel Date value differs in Generation Mode

Hi,

Do you want to convert your Date type to String type in work flow? What does your expected result look like?

More information will be helpful for us to understand your requirement.

Best regards

Sabrina

--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.
Five Stars

Re: Excel Date value differs in Generation Mode

Hello Sabrina,

I would like to have it as String in M/d/yyyy format and also would like to understand why the values are different from what is shown in Excel and in Talend.

 

Thanks

2019 GARNER MAGIC QUADRANT FOR DATA INTEGRATION TOOL

Talend named a Leader.

Get your copy

OPEN STUDIO FOR DATA INTEGRATION

Kickstart your first data integration and ETL projects.

Download now

What’s New for Talend Summer ’19

Watch the recorded webinar!

Watch Now

Best Practices for Using Context Variables with Talend – Part 1

Learn how to do cool things with Context Variables

Blog

Migrate Data from one Database to another with one Job using the Dynamic Schema

Find out how to migrate from one database to another using the Dynamic schema

Blog

Best Practices for Using Context Variables with Talend – Part 4

Pick up some tips and tricks with Context Variables

Blog