Crystal Reports DateTime Formatting

后端 未结 4 983
萌比男神i
萌比男神i 2020-12-21 02:32

I\'d like to format a datetime in Crystal Reports to a include the day of week.

From:

19/06/2009

To:

相关标签:
4条回答
  • 2020-12-21 02:41

    If in a formula, you can use the following.

    CSTR({?@end_dt}, "ffffdd, MMMM d, yyyy")
    
    0 讨论(0)
  • 2020-12-21 02:51

    You can use this formula:

    CSTR(Date({command.EntryDate}), "dd/MM/yyyy")
    
    0 讨论(0)
  • 2020-12-21 02:56

    In Crystal Reports XI Release 2 you can right click on the field and go to Format Field. On the "Date and Time" tab click the customize button. Under the Date Tab change the Date Type drop down to "Windows Default Long".

    0 讨论(0)
  • 2020-12-21 03:06

    If the DateTime is in field (not a formula) :

    Right click on the field -> Format Editor
    Date and Time tab
    Select date/time formatting you desire (or click customize)
    

    If the datetime is in a formula:

    ToText({MyDate}, "dd-MMM-yyyy")
    
    0 讨论(0)
提交回复
热议问题