Solved

Crystal reports month formula

Posted on 2012-03-16
2
558 Views
Last Modified: 2012-03-16
I need a formula that looks at a date like 03-13-2012 and tells me what month it is.  

If datefield starts with 03 then March, kind of formula.
0
Comment
Question by:TomBalla
2 Comments
 
LVL 8

Accepted Solution

by:
Crashman earned 500 total points
Comment Utility
formula
for date

ToText(CurrentDate,'dd-MM-yyyy')

ToText(CurrentDate,’MMM’)       “Oct”
ToText(CurrentDate,’MMM’)       “October”
ToText(CurrentDate,’MMMM yyyy’)       “October 2010"
ToText(CurrentDate,’MMMM, yyyy’)       “October, 2010"
0
 
LVL 100

Expert Comment

by:mlmcc
Comment Utility
Is it a date field or a string?

If it is a date then use the above as
   ToText({YourDateFIeld}, 'MMM')

If it is a string then

    MonthName(Val(Left({yourDateString},2)))

or

    MonthName(Val(Left({yourDateString},2)),True)

mlmcc
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Crystal Reports: 5 Tests for Top Performance It is complete, your masterpiece report.  Not only does it meet your customer’s expectations, it blows them out the water, all they want is beautifully summarised and displayed in a myriad of ways. …
I hate sub reports and always consider them the last resort in any reporting solution.  The negative effect on performance and maintainability is just not worth the easy ride they give the report writer.  Nine times out of ten reporting requirements…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now