One Star

[resolved] Get monthname in Uppercase

Hi everyone
I've to process one job which has to be scheduled. So I should do everything as automative. In job I've the input filename with current date format.
For example
sample_22-DEC-14
For this I'm using "sample_"+TalendDate.getDate("dd-MMM-yy"). Upto this ok.I could able to get date as sample_22-Dec-14, but it is throwing error as no such file or directory. So I need to get the monthname  in uppercase as DEC.
How could I achieve it in filename?
Any help would greatly appreciated.
Thank you in advance.
1 ACCEPTED SOLUTION

Accepted Solutions
Five Stars

Re: [resolved] Get monthname in Uppercase

use "sample_"+string.toUpper(TalendDate.getDate("dd-MMM-yy")) this may solve your problem. 
2 REPLIES
Five Stars

Re: [resolved] Get monthname in Uppercase

use "sample_"+string.toUpper(TalendDate.getDate("dd-MMM-yy")) this may solve your problem. 
One Star

Re: [resolved] Get monthname in Uppercase

Thank you for your reply.
I tried exactly what you said. It works.