Cjandura58
New Member
I am importing a file into our database that has the time in character format but the database field is time integer. In order to get the time correctly deposited into the field we came up with this;
time is "3:40:12AM"
15X60X60 = 54000
40X60 = 2400
12 = 12
----------
56412
56412 then translates into 3:40:12
We of course would rather not use this formula, we would like to find some simpler and yes sane way of converting a time string into actual intger time for input into the database.
Thank you in advance for any help you can give.
Carrie
NFCU
Vienna, VA
time is "3:40:12AM"
15X60X60 = 54000
40X60 = 2400
12 = 12
----------
56412
56412 then translates into 3:40:12
We of course would rather not use this formula, we would like to find some simpler and yes sane way of converting a time string into actual intger time for input into the database.
Thank you in advance for any help you can give.
Carrie
NFCU
Vienna, VA