Change in Date_format

Six Stars

Change in Date_format

Hi
I have an Excel file which has a date column in the format of mm/dd/yyyy but when I load this into table it is loading as mm/dd/yy.
Why does this happen
I use SQL server
My scenario is converting
mm/dd/yyyy
into
mm in one column as integer
Dd in one column as integer
Yyyy in one column as integer the first two works fine but yyyy is loading as yy
Any suggestions are much appreciated thanks


Accepted Solutions
Employee

Re: Change in Date_format

Hi Tharun,

 

     Is the data loaded to SQL server in mm/dd/yy format or is the data displaying from SQL server in mm/dd/yy format?

 

     Could you please check the tDBOutput component and cross check the format used for the date column while loading? If its looking fine and if it is mm/dd/yyyy (you can also add a tLogrow component to cross check the data before and after tDBOutput), then the next step is to check the data display format for your DB.

 

     The issue could happen because your data display format in SQLserver client connection is having a default format of mm/dd/yy. Could you please check these details and revert? Please also add some screenshots so that we will get better idea of the issue (if it still persists).

 

Warm Regards,
Nikhil Thampi

Please appreciate our Talend community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved :-)


All Replies
Employee

Re: Change in Date_format

Hi Tharun,

 

     Is the data loaded to SQL server in mm/dd/yy format or is the data displaying from SQL server in mm/dd/yy format?

 

     Could you please check the tDBOutput component and cross check the format used for the date column while loading? If its looking fine and if it is mm/dd/yyyy (you can also add a tLogrow component to cross check the data before and after tDBOutput), then the next step is to check the data display format for your DB.

 

     The issue could happen because your data display format in SQLserver client connection is having a default format of mm/dd/yy. Could you please check these details and revert? Please also add some screenshots so that we will get better idea of the issue (if it still persists).

 

Warm Regards,
Nikhil Thampi

Please appreciate our Talend community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved :-)

Six Stars

Re: Change in Date_format

Sorry for the delayed response you have exactly mentioned it is the problem with sql

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 4

Pick up some tips and tricks with Context Variables

Blog

How Media Organizations Achieved Success with Data Integration

Learn how media organizations have achieved success with Data Integration

Read

6 Ways to Start Utilizing Machine Learning with Amazon We Services and Talend

Look at6 ways to start utilizing Machine Learning with Amazon We Services and Talend

Blog