Solved

identify month in year

Posted on 2002-07-29
2
398 Views
Last Modified: 2011-10-03
This must be pretty easy but i can't figure it out.

i'm using version 7 crystal reports

I want to identify what month in the year i am in from CurrentDate.

I want to use it as the same function for DayOfWeek but for Month of Year.
0
Comment
Question by:m0ley
2 Comments
 
LVL 12

Accepted Solution

by:
DRRYAN3 earned 65 total points
ID: 7185453
Use month(x) to return a month number from 1 - 12 where x is a date value.

Use monthname(y) to return the full month name from a month number from 1-12.

Use monthname(y,true) to return a three letter abbreviation of the month name (ie APR for April) where y is a month number from 1-12.

Today these will return:
month(currentdate) -> 7
monthname(month(currentdate)) -> July
monthname(month(currentdate),true) -> Jul

DRRYAN3
0
 

Author Comment

by:m0ley
ID: 7185536
thanx a lot, i managed to work it before i got your solution, but the points are yours cos you gave me extra info which are helpful to me :)

m0le2000
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
Store code inside oracle BLOB column 7 42
Crystal Reports Format Field with Dashes 6 41
Crystal Reports get subgroup count 1 45
Crystal reports vb.net 2 7
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…
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

920 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

12 Experts available now in Live!

Get 1:1 Help Now