Skip to main content
Announcements
July 15, NEW Customer Portal: Initial launch will improve how you submit Support Cases. IMPORTANT DETAILS
cancel
Showing results for 
Search instead for 
Did you mean: 
arulsettu
Master III
Master III

get month and year from month/year

hi

i am having data like this

Year

03/2016   

03/2015   

01/2016   

12/2015   

01/2015   

05/2015   

06/2015   

02/2016   

11/2015   

08/2015   

10/2015   

04/2016   

05/2016   

09/2015   

07/2015   

04/2015   

02/2015              

];

i did the following

LOAD*,

month(SubField(Year,'/','1')) as newmonth,

Year(SubField(Year,'/','1')) as newyear;

but not getting the result

any idea?

10 Replies
jayaseelan
Creator III
Creator III

Hi,

try this,

Year:

LOAD*,

Month(Date#(SubField(Year,'/','1'),'M')) as newmonth,

Date#(mid(Year,4),'YYYY')as newyear;

LOAD Year

FROM

C:\Users\GIS\Desktop\Temp.xlsx

(ooxml, embedded labels, table is Sheet1);