Jump to content

date format / timestamp problem


jiturc889

Recommended Posts

hello,

I am facing one problem in php, mysql

whenever i submit empty date to db, it automatically takes timestamp as 943900200 ('30-11-1999')

which is creating problems in my application.....

currently handling this problem by hard coding timestamp validation.....

 

If anyone knows anything , please suggest a solution...

 

thanking in advance

 

Link to comment
https://forums.phpfreaks.com/topic/57536-date-format-timestamp-problem/
Share on other sites

actually in my form , there r 5 dates to be selected by user, but whenever he dont have anyone date, he just leaves tht, yes, n he can update it later.. but in the case i cant make them compulsary fields, user can/can not have all the dates at the time....

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.