Date Format in DataBrew transformation

0

Working with a CSV that has a date format on the raw file dd/mm/yyyy which is AU/UK format. Raw Date Field

We are applying a recipe to change the data format to yyyy-MM-dd via the format column transform so we can do some ordering via asc/desc.

But if I look at a before and after from the two text files.

Before = FOO 3822 08/03/2023 Bob (8th of March 2023)

After= FOO 3822 2023-08-03 Bob (3rd of August 2023)

This only seems to apply on string where the dd is between 1-12. So i'm getting a mixture in my output of some outputs being yyyy-MM-dd & yyyy-dd-MM with a single Date Function.

is their a way to parse the string as a date standard before I format it?

The dataset is a list of product price updates. There is multiple rows with the same product but different update date stamps. The purpose is to order them by latest date using the format yyyy-MM-dd and then remove duplicate rows for the same product leaving a dataset with only the latest product update which will always be the first row of the same product type.

AWS
Arran
질문됨 일 년 전119회 조회
답변 없음

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠