Solved

Crystal reports month formula

Posted on 2012-03-16
2
560 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
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Crystal Report Grouping 8 65
How to add a total 6 32
Pass a parameter from a Windows form to a crystal report in VB.NET 8 61
Crystal Reports - group header 2 38
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 …
This is a video that shows how the OnPage alerts system integrates into ConnectWise, how a trigger is set, how a page is sent via the trigger, and how the SENT, DELIVERED, READ & REPLIED receipts get entered into the internal tab of the ConnectWise …
Need to grow your business through quality cloud solutions? With everything required to build a cloud platform and solution, you may feel like the distance between you and the cloud is quite long. Help is here. Spend some time learning about the Con…

947 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

21 Experts available now in Live!

Get 1:1 Help Now