alvin567 Posted May 27, 2012 Share Posted May 27, 2012 what could be the problem,I know it is empty,one more clue,how do i check it is 1-1-1970 which is the date type? Quote Link to comment https://forums.phpfreaks.com/topic/263208-my-date-fields-is-returning-1-1-1970/ Share on other sites More sharing options...
Mahngiel Posted May 27, 2012 Share Posted May 27, 2012 you are either creating, saving, or retrieving the timestamp incorrectly. 1/1/1970 is a generic fallback error. Quote Link to comment https://forums.phpfreaks.com/topic/263208-my-date-fields-is-returning-1-1-1970/#findComment-1348970 Share on other sites More sharing options...
.josh Posted May 27, 2012 Share Posted May 27, 2012 It would help if you posted some relevant code, but to provide more detail, you are using a function such as date or strtotime that doesn't recognize the datestring or timestamp value you are giving it, so it is returning 1/1/1970 (in whatever format, depending on your script). That date is the starting date of unix time. Quote Link to comment https://forums.phpfreaks.com/topic/263208-my-date-fields-is-returning-1-1-1970/#findComment-1348979 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.