Tim Moores wrote:Which date is that supposed to be?
Wouldn't int(8) be the same as a long?
Diogo Malta wrote:1603883824076
Junilu Lacar wrote:Storing a date as an int(8) is a very poor design choice, in my opinion. Most databases support a Date/Time stamp datatype so why wouldn't you just use that instead of int(8)? Whatever it is you think you're saving, it's just not worth the time and effort and pain you're going to experience.
See the replies here to see what kind of problems an int(8) representation of Date will give you: https://dba.stackexchange.com/questions/15645/storing-date-as-integer-numeric-what-are-the-advantages
Diogo Malta wrote:I agree with you, but the thing is that i cant change the database, and they have the field of the date in int(8) thats the problem