system
July 13, 2011, 3:27pm
1
Hi,
In my report I have a date coming in Number format and it is in the form of YYYYMM.
I tried to convert in to Mon-YY format using below function but I am not getting the answer.
=ToDate(FormatNumber([YYYYMM-Date];"00");"MON-YY")
Can any one tell me where I am doing the mistake. Or the functions which I am using is not correct. I googled a lot but not found any correct soultion.
Cheers,
Chetan.
chetan86 (BOB member since 2011-01-18)
system
July 13, 2011, 5:45pm
2
Mon is no supported, Try this
=FormatDate(ToDate(FormatNumber([YYYYMM-Date];"0");"yyyyMM");"Mmm-yy")
Thanks,
Zaif
zaif235 (BOB member since 2010-06-15)
system
July 13, 2011, 7:27pm
3
Hi,
What is the datatype of object YYYYMM that you are getting? Is it date or number or string?
M H Mohammed (BOB member since 2010-06-16)
system
July 14, 2011, 3:35am
4
Not sure, but you can try this-
=Month(Max(ToDate(FormatNumber([MonthID];"######"); "yyyyMM"))) + " " + FormatNumber(Max(Year(ToDate(FormatNumber([MonthID];"######");"yyyyMM")));"####")
I had bit similar requirement, so worked on it. You can refer this-
Hi
I am trying to implement a formula , but somewhere I am doin wrong.
="Incremental Numbers Of The Branches Between 1 and 275 For the Month of "+Month(Max(ToDate([MIS Account Open Month ID];"MMM"))+" "+FormatNumber(Year(Max(ToDate([MIS Account Open Month];"YYYY")));"####")
The value in MIS Account Open Month ID is like (200804,200706) and it should be read as April 2008 or June 2006.
Please someone give some suggestion or solution to this problem.
Thanks Aniket
aniketp (BOB member si…
Edit: You can remove Max from the code as it is not required in your case.
Updated one-
=Month(ToDate(FormatNumber([MonthID];"######"); "yyyyMM")) + " " + FormatNumber(Year(ToDate(FormatNumber([MonthID];"######");"yyyyMM"));"####")
aniketp (BOB member since 2007-10-05)
MarkP
July 14, 2011, 9:02am
5
Hi,
In my report I have a date coming in Number format and it is in the form of YYYYMM.
I tried to convert in to Mon-YY format using below function but I am not getting the answer.
=ToDate(FormatNumber([YYYYMM-Date];"00");"MON-YY")
Can any one tell me where I am doing the mistake. Or the functions which I am using is not correct. I googled a lot but not found any correct soultion.
Cheers,
Chetan.
YYYYMM is NOT a date. It is a year month number.
You need to make it a date.
=FormatDate(ToDate([YYYYMM-Date]*100+1;"yyyyMMdd");"Mmm-YY")
Similarly, Mon-YY is not a date format, it is a year month format - you are formatting the date and presenting it as a month.