Solved

identify month in year

Posted on 2002-07-29
2
402 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
[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 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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

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

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…
Hello everyone, Hope you find this as helpful as we did. We have on the company I work for an application built in Delphi V with Crystal Reports 8. We all know that Crystal & Delphi can be temperamental sometimes and the worst thing is, nearly…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

751 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