Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Crystal reports month formula

Posted on 2012-03-16
2
Medium Priority
?
580 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 2000 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 101

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: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering 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

Hot fix for .Net Crystal Reports 10.2.3600.0 to fix problems with sub reports running on 64 bit operating systems ISSUE: Reports which contain subreports fail with error "Missing Parameter Value" DEPLOYMENT SERVER OS: Windows 2008 with 64 bi…
There have always been a lot of questions related to when Crystal Reports evaluates report components (such as formulas, summaries, cross-tabs, charts, to name a few examples). Crystal Reports uses a two-pass reporting process to provide greater …
Despite its rising prevalence in the business world, "the cloud" is still misunderstood. Some companies still believe common misconceptions about lack of security in cloud solutions and many misuses of cloud storage options still occur every day. …
Look below the covers at a subform control , and the form that is inside it. Explore properties and see how easy it is to aggregate, get statistics, and synchronize results for your data. A Microsoft Access subform is used to show relevant calcul…

916 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