Solved

Crystal reports month formula

Posted on 2012-03-16
2
568 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 8

Accepted Solution

by:
Crashman earned 500 total points
ID: 37729718
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
ID: 37729814
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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

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…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…
Suggested Courses

734 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