>>>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.
>
>I wonder though how Century is related to the Seconds. Thank you.
It's not directly related, but the string is longer with Set Century On.