Change Crystal Report PrintDate Field to SqlServer

2019-09-03 01:40发布

I have Server, and a Client. I want to display Server Date in Crystal report Print field instead of local date of Client. How can I do that?

1条回答
成全新的幸福
2楼-- · 2019-09-03 02:38

You would have to return the server date from the SQL Server to your Crystal Report and replace the PrintDate field with your new field.

e.g

SQL

Select Col1,
Col2,
...
GetDate() as 'ServerDateTime'

From dbo.MyTable

Replace {PrintDate} in the Crystal Report with {ServerDateTime} from the list of Database Fields

查看更多
登录 后发表回答