data loading activity | Community
Skip to main content
May 17, 2024
Solved

data loading activity

  • May 17, 2024
  • 1 reply
  • 722 views

Hi Team, 

 

I'm utilizing a data loading function with a date column in the format dd-mm-yyyy. Although I've chosen the format as dd/mm/yyyy and set the separator to "-", it's returning zero results. Is there a method to convert the data to dd/mm/yyyy after the file is loaded? Please advise.

 

 

Thank you in advance

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by ParthaSarathy

Hi @rvnth ,

The below configuration in data loading activity for date column should work fine:

Alternate solution:

Set the Data type as string in data loading activity

And add an enrichment activity next to data loading activity and create a column using below expression,

 

ToDate((Substring(Date_Field,4 ,2 )+'/'+Substring(Date_Field,1,2 )+'/'+Substring(Date_Field,7,4 )))

 

This will convert it to date data type. To convert it to date and time format use ToDateTime(****)

 

1 reply

ParthaSarathy
Community Advisor
ParthaSarathyCommunity AdvisorAccepted solution
Community Advisor
May 17, 2024

Hi @rvnth ,

The below configuration in data loading activity for date column should work fine:

Alternate solution:

Set the Data type as string in data loading activity

And add an enrichment activity next to data loading activity and create a column using below expression,

 

ToDate((Substring(Date_Field,4 ,2 )+'/'+Substring(Date_Field,1,2 )+'/'+Substring(Date_Field,7,4 )))

 

This will convert it to date data type. To convert it to date and time format use ToDateTime(****)

 

 ~  ParthaSarathy S~  Click here to join ADOBE CAMPAIGN USER GROUP for Quarterly In-person | Hybrid | Virtual Meetups