OroPlatform Forums

Covering OroPlatform topics, including community updates and company announcements.

Forums Forums OroPlatform OroPlatform – Programming Questions Datetime in Datagrid

This topic contains 2 replies, has 2 voices, and was last updated by  SkaiBoa 10 years, 6 months ago.

Starting from March 1, 2020 the forum has been switched to the read-only mode. Please head to StackOverflow for support.

  • Creator
    Topic
  • #33289

    SkaiBoa
    Participant

    Hello,

    when I use Date or Datetime in a Datagrid i got a problem with this value in the database: ‘0000-00-00 00:00:00’ or ‘0000-00-00′. It shows in the grid as ’11/30/0001’. A way is to take a Decorator and delete this date and render out a empty cell, but that cannot be the real solution.

    Is there any other solution that ‘0000-00-00’ in the database render as a empty string ?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Author
    Replies
  • #33290

    ishakuta
    Participant

    You shouldn’t have such value in db for date, instead use NULL if possible.
    Fixed in master, check after release.

    #33291

    SkaiBoa
    Participant

    Thank you very much. That helps.

Viewing 2 replies - 1 through 2 (of 2 total)

The forum ‘OroPlatform – Programming Questions’ is closed to new topics and replies.

Back to top