Hi there i have come across a problem which I need help on please, if anyone knows of a solution it would be much appreciated ..
Hi there i have come across a problem which I need help on please, if anyone knows of a solution it would be much appreciated ..
When I export the user data out of modx mysql data base to an excel workbook, some of the fields mainly the Date of Birth field is exporting as an integer so I have lots of data that I cant use unless I can convert it back into an actual date format.
If any one has a solution to this it would be great.
Some of the actual data
93398400
277948800
1201737600
-202435200
-164246400
1223683200
309484800
-331862400
1202515200
261705600
284688000
-469152000
This one is confusing to me as well... why does MODx store dates as integers instead of MySQL’s built-in DATETIME and TIMESTAMP data types? MySQL has some really handy date handling functions... storing the data as integers makes those functions a little bit harder to reach...No, storing it as an integer is better , you can just retrieve it like this for instance :-
Ok found a solution to my problem many thanks to Lee over at Blend Creative for the advice.. it works a treat for me so here it is for anyone else having this problem.