Skip to main content
Announcements
SYSTEM MAINTENANCE: Thurs., Sept. 19, 1 AM ET, Platform will be unavailable for approx. 60 minutes.
cancel
Showing results for 
Search instead for 
Did you mean: 
alexandermllr
Creator
Creator

Date format problems

Hello,

I have problems with a date format.

I have this format:

     date

     115

     216

     1115

I want this:

     date

     2015/01

     2016/02

     2015/11

My problem is the month.

Thank you for you help

1 Solution

Accepted Solutions
sunny_talwar

Try like this:

Table:

LOAD *,

  Date(Date#(Num(Date, '0000'), 'MMYY'), 'YYYY/MM') as NewDate;

LOAD * Inline [

Date

115

216

1115

];

Capture.PNG

View solution in original post

2 Replies
sunny_talwar

Try like this:

Table:

LOAD *,

  Date(Date#(Num(Date, '0000'), 'MMYY'), 'YYYY/MM') as NewDate;

LOAD * Inline [

Date

115

216

1115

];

Capture.PNG

alexandermllr
Creator
Creator
Author

Hi,

Thank you very much!