Updated DateToSeconds Function