Ark68
Well-known Member
- Joined
- Mar 23, 2004
- Messages
- 4,564
- Office Version
- 365
- 2016
- Platform
- Windows
I don't think I'm on the right course for converting my text timne values to that time's decimal equivalent.
uf8_d_start and uf8_d_end are text boxes in userf orm uf8_post. They hold time values in text format.
uf8_d_start = "6:00 PM"
uf8_d_end = "8:00 PM"
After the formulae,
pgm_start = 0.03125
pgm_end = 3.47222222222222E-2
I don't think I am using the right formula as these answers don't look right.
Code:
pgm_start = (TimeValue(uf8_post.uf8_d_start.Caption) / 24)
pgm_end = (TimeValue(uf8_post.uf8_d_end.Caption) / 24)
uf8_d_start and uf8_d_end are text boxes in userf orm uf8_post. They hold time values in text format.
uf8_d_start = "6:00 PM"
uf8_d_end = "8:00 PM"
After the formulae,
pgm_start = 0.03125
pgm_end = 3.47222222222222E-2
I don't think I am using the right formula as these answers don't look right.