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
Solved

Crystal Reports-display combined date/order number

Posted on 2009-07-15
3
292 Views
Last Modified: 2013-11-15
I am trying to display a field which combines an order-number and an order date.  That is easy enough, using a formula to combine them.  However the problem is that, before combining them, I want to change the date (which is in DATE-TIME format) to just date (i.e. mm/dd/yy).  After changing it, I want to combine the date-only field with the order number for the report field.  i have been trying all kinds of things with no luck.
Your help is appreciated!!
0
Comment
Question by:mbroad02
3 Comments
 
LVL 18

Assisted Solution

by:UnifiedIS
UnifiedIS earned 100 total points
ID: 24860558
This will create the date as a string:
CSTR(MONTH({Command.t_invd}), 0) + "/" + CSTR(DAY({Command.t_invd}), 0) + "/" + RIGHT(CSTR(YEAR({Command.t_invd}),0), 2)
Just add the order number and change out my date field for yours

OR

Create a text box and drop your date field and order number field in it (separated by a space).  Then you can format the date field to your mm/dd/yy format.
0
 
LVL 77

Accepted Solution

by:
peter57r earned 400 total points
ID: 24860577
if ordernumber is number then you can do..

Totext({table.OrderNumber},0,"") & Totext({table.OrderDate},"MM/dd/yy")
0
 

Author Closing Comment

by:mbroad02
ID: 31603786
The ToText formula worked perfectly!!  thanks
0

Featured Post

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

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

Suggested Solutions

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 …
How to increase the row limit in Jasper Server.
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

792 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