Report Design
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Report Design
Message Icon Topic: DateTime Foramtting Post Reply Post New Topic
Author Message
patil
Newbie
Newbie


Joined: 19 Apr 2010
Online Status: Offline
Posts: 16
Quote patil Replybullet Topic: DateTime Foramtting
     Posted: 17 Jun 2010 at 8:52pm
Hi,
 
In my report ther are two separate fields i.e. date and time..
and i am concatenating them by:
(date)&(time)
but i need to format themand result should be: 12/4 12:23:30 PM
 
I am using this formula for formatting i.e.
ToText((Date),"MM/dd) & ToText((Time),"HH:mm:ss")
 
but i am getting error i.e. too many arguments..
 
so how to format in formula only???????
 
IP IP Logged
lockwelle
Moderator
Moderator


Joined: 21 Dec 2007
Online Status: Offline
Posts: 4374
Quote lockwelle Replybullet Posted: 18 Jun 2010 at 3:07am
are Date and Time defined as datetime fields or are they text?
 
also, I am assuming that you are just typing the () around date and time instead of using the {table.field} for ease of display.
 
 
IP IP Logged
rahulwalawalkar
Senior Member
Senior Member
Avatar

Joined: 08 Jun 2007
Location: United Kingdom
Online Status: Offline
Posts: 731
Quote rahulwalawalkar Replybullet Posted: 18 Jun 2010 at 11:22pm
Hi
Please post sample data , expected output
Cheers
Rahul
IP IP Logged
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum