Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Set Seconds Off for a report
Message
From
24/02/2024 02:26:11
 
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Miscellaneous
Thread ID:
01687644
Message ID:
01687646
Views:
42
>Hi,
>
>I have a report which shows the date and the time when the report is printed (on the top of the report). I use the following expression:
>
>TTOC( DATETIME() )
>
>This prints the date and time exactly as I want to. Except it also prints the seconds. I prefer to print only hours and minutes and PM/AM.
>
>I know that I can Set Seconds Off.
>But, I am wondering, is it possible to Set Seconds Off somewhere in the Report (FRX file) and then restore the setting?
>
>TIA

You can use this expression:
left(ttoc(datetime()),iif(set("Century")="ON",16,14))
Or if you never change Set Century, you can skip the last part.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform