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

前端 未结 8 1183
遇见更好的自我
遇见更好的自我 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 13:51

    This formula works for me:

    // Converts CR TimeDate format to AssignDate for WeightedAverageDate calculation.
    
    Date( Year({DWN00500.BUDDT}), Month({DWN00500.BUDDT}), Day({DWN00500.BUDDT}) ) - CDate(1899, 12, 30)
    

提交回复
热议问题