How to convert datetime format to date format in crystal report using C#?

前端 未结 8 1185
遇见更好的自我
遇见更好的自我 2021-01-04 13:01

i am working c# windows form application and also in crystal report.i am retriving the date from database in datetime format but i like display date only in report,Is any fo

相关标签:
8条回答
  • 2021-01-04 14:02

    if it is just a format issue use ToShortDateString()

    0 讨论(0)
  • 2021-01-04 14:03

    Sometimes the field is not recognized by crystal reports as DATE, so you can add a formula with function: Date({YourField}), And add it to the report, now when you open the format object dialog you will find the date formatting options.

    0 讨论(0)
提交回复
热议问题