Report Design
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Report Design
Message Icon Topic: Format date/time in Formula Post Reply Post New Topic
Author Message
snufse
Newbie
Newbie


Joined: 19 Mar 2008
Location: United States
Online Status: Offline
Posts: 36
Quote snufse Replybullet Topic: Format date/time in Formula
    Posted: 13 Jun 2012 at 3:30am
Have a datetime field that I need to bar code and I need to change the format of time to 00:00:00
 
Cstr ("*")  +
CStr({Transaction.DateOut}) +
Cstr ("*");
 
Current value I get is: *2/6/12   6:49 am*
 
Need 2/6/12 06:49:00. How can I do this. Thank you.


Edited by snufse - 13 Jun 2012 at 3:30am
IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 13 Jun 2012 at 3:44am
totext({Transaction.DateOut},"*M/d/yy HH:mm:ss*")
IP IP Logged
Post Reply Post New Topic
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



This page was generated in 0.031 seconds.