Wrox Programmer Forums
|
Crystal Reports General discussion about Crystal Reports. For discussions specific to the book Professional Crystal Reports for VS.NET, please see the book discussion forum for that book.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Crystal Reports section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old October 5th, 2004, 09:24 AM
Authorized User
 
Join Date: Aug 2004
Posts: 30
Thanks: 0
Thanked 0 Times in 0 Posts
Default converting dates

how to display report in table format.
how to convert number 1,2 3 (part of date string) to jan feb etc on crystal report. dates are stored as string in database.

 
Old October 13th, 2004, 10:00 AM
Authorized User
 
Join Date: Oct 2004
Posts: 29
Thanks: 0
Thanked 0 Times in 0 Posts
Default

You'll need to create a formula to extract the month from the date. This will supply you a number for the month. Then you'll need to make an If-Then-Else formula to name the months:

NumberVar Mth:= Month(DateField);

If Mth = 1 then "Jan" else
If Mth = 2 then "Feb" else

etc.







Similar Threads
Thread Thread Starter Forum Replies Last Post
converting dates: day of week stolte XSLT 2 November 28th, 2007 11:24 AM
dates again dhoward VB.NET 2002/2003 Basics 12 August 22nd, 2007 09:48 AM
converting dates dhoward VB.NET 2002/2003 Basics 6 August 2nd, 2007 08:42 AM
Converting dates outspaced XSLT 1 November 27th, 2006 01:31 PM
Converting Dates mg1966 Classic ASP Databases 1 January 19th, 2005 09:15 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.