I have a formula field which converts a datetime value to text. I have used the fomatting to have the day without any leading zeros, which works, except it leaves a blank space instead. Is there any way to get rid of that extra space so that it will match the other datetime fields in the report that have not been converted to text?
Table.Field1 is a DateTime datatype.
This appears as:
When I directly format a DateTime field using the built-in Crystal formatting dialog box, I get
Note: I need to format Field1 in a formula as it is part of another formula that will add text based on the record's status.
Is this a bug in Crystal or am I missing something?
Crystal Reports XI, R1, on Windows XP SP2, using SQL Server MDB
Thanks!
Table.Field1 is a DateTime datatype.
Code:
[b]@Date to Text[/b]
[COLOR=blue]ToText[/color] (Table.Field1},"M/d/yyyy") + ' ' + {@Admin Time}
Code:
[b]@Admin Time[/b]
[COLOR=blue]ToText [/color]([COLOR=blue]Time[/color] ({Table.Field1}), "HHmm")
This appears as:
Code:
4/ 2/2007 1634
When I directly format a DateTime field using the built-in Crystal formatting dialog box, I get
Code:
4/2/2007 1634
Note: I need to format Field1 in a formula as it is part of another formula that will add text based on the record's status.
Is this a bug in Crystal or am I missing something?
Crystal Reports XI, R1, on Windows XP SP2, using SQL Server MDB
Thanks!