Empty DATETIME fields

QuestionsEmpty DATETIME fields
michael asked 9 years ago

Hi

I just purchased phpgrid – I am a newbie, please bear with me.

Empty DATETIME fields in MySQL are stored as "1899-12-30 00:00:00"

When I read my date fields into my grid I dont want to display these nonsense dates, but instead I was hoping to apply a condition to set them to blank values.

I have tried various conditional formulae but nothing works. I am sure this can be done – can anybody help?

1 Answers
michael answered 9 years ago

Sorted…

My problem was that the MySQL data had been imported form another system and in the process for some reason the blank dates were converted to 1899-12-30

I couldnt zeroise them in MySQL until I set them to NULL….

Your Answer

17 + 5 =

Login with your Social Id:

OR, enter

Attach code here and paste link in question.
Attach screenshot here and paste link in question.



How useful was this discussion?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate it.

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?