Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi All,
My date is in below format.
16589 |
16590 |
16591 |
16594 |
16595 |
16596 |
Can you please suggest how to extract month and year from this.
thanks
Hi,
Simply use Month(),MonthName(),Year() on that dateField
Regards
Hi,
Try like,
Month(DateField) as Month,
Year(DateField) as Year
Regards
year(date(16589)) or year(16589)
num(month(date(16589))) or month(16589)
you can do this in the model or in the visualization layer
Cheers,
Iliyan
Hi Deepak,
is it of format DDMYY?
=Date(Date#(Text(MyDateField),'DDMYY'))
To cover both formats DDMYY and DDMMYY you can use this expression:
=Date(Date#(MyDateField, If(Len(Text(MyDateField))=5, 'DDMYY', 'DDMMYY')))
- Ralf