Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Do anybody know if there is an expresion that will convert a date to text? For instance Jan-2013 to Jan?
Hi,
if your field value is 'Jan-2013' you can use the Left() function.
Left(Field,3)
Hope it helps
Regards
Giampiero
suppose your date field from where you get Month Year as Jan-13 is Date then create a field MonthNumber in ur script;
num(Month(Date)) as MonthNumber
Now u can create an inline table in ur script:
Load * Inline
[
MonthNumber,MonthName
1,Jan
2,Feb
3,Mar
4,Apr
5,May
.
.
.
.
12,Dec
];
Hi,
Left('Jan-2013', 3) is the best option to get the month name.
Regards,
Jagan.
Using Left() will work, but you will not be able to sort the months properly. Use the following instead:
Month(Date#(DateField,'MMM-YYYY'))
HIC