Provide the GatherData[] array declaration. Your code looks overly complicated for what I think you're trying to do. Can you explain more what your intending to do (do not explain in code).
Also, you could store the time/date as a 4-byte unix timestamp and simplify this:
1546903919 = 01/07/2019 @ 11 : 31pm