trumans Posted March 20, 2008 Posted March 20, 2008 (edited) My data input file has time in 24 hour notation. I can format the "time" field such that it appears in 12 hour notation as a stand-alone. However, when I try to combine this field in a calculation (generating an email message with multiple fields - in this case reminding a client of an upcoming resrevation time), the time reverts to he 24-hour notation. Any ideas? Edited March 20, 2008 by Guest
comment Posted March 20, 2008 Posted March 20, 2008 See here: http://www.fmforums.com/forum/showtopic.php?tid/193751/
trumans Posted March 20, 2008 Author Posted March 20, 2008 Thanks for the quick response! The code you pointed me to does work . . .. sorry to be such a "newby" but, my new calc is giving me both the 24 hour and 12 hour notation. Any chance you can see my error: ============================== "Dear " & Contact Management::First Name & ",¶¶ This message is to confirm your reservation for "& OpenTix::Time 12 hour &Mod( Hour (Time 12 hour ) - 1 ; 12 ) + 1 & ":" &Right ( "00" & Minute ( Time 12 hour ) ; 2 ) &Case ( Time 12 hour < 43200 ; " AM" ; " PM" ) &
comment Posted March 20, 2008 Posted March 20, 2008 I am guessing it's this part: "Dear " & Contact Management::First Name & ",¶¶ This message is to confirm your reservation for "& OpenTix::Time 12 hour &Mod( Hour (Time 12 hour ) - 1 ; 12 ) + 1 & ":" &Right ( "00" & Minute ( Time 12 hour ) ; 2 ) &Case ( Time 12 hour < 43200 ; " AM" ; " PM" ) & However, the context is not quite clear to me: why is it OpenTix::Time 12 hour in one place and Time 12 hour in another?
Recommended Posts
This topic is 6152 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now