Jon Crain Posted March 5, 2008 Posted March 5, 2008 Is there a way to export a Time field that would export the Time Format along with it? For example... If I have a Time field and I put "20" in it, I get "8:00 p.m." When I go to export that field (or convert it to text or what have you) it simply exports "20". I want to force it to export the formatted time. I've tried a number of different ways, but nothing seems to work as flawlessly as I'd like. Any help? jon
comment Posted March 5, 2008 Posted March 5, 2008 In the 2nd export dialog, there's an option to 'Apply current layout's data formatting to exported data'.
Jon Crain Posted March 5, 2008 Author Posted March 5, 2008 Hmmm. That would totally work for the question I gave. However, I must have misstated my situation... I'm not as much exporting using the standard export option, but exporting via a long script/AppleScript into a Word Document. Perhaps this topic actually belongs in the AppleScript forum... I suppose it would be possible to export that field to a file using the method you described, then importing that file into a text field, but there has got to be a better way. For now I won't start a new topic in the AS forum. jon
Jon Crain Posted March 5, 2008 Author Posted March 5, 2008 For example, you can do it with dates pretty easily, like this... DayName ( Date ) & ", " & MonthName ( Date ) & " " & Day ( Date ) & ", " & Year ( Date ) That will turn any date like 3/5/08 into Wednesday, March 5, 2008.
comment Posted March 5, 2008 Posted March 5, 2008 Try: Mod ( Hour ( TimeField ) - 1 ; 12 ) + 1 & ":" & Right ( "00" & Minute ( TimeField ) ; 2 ) & Case ( TimeField < 43200 ; " AM" ; " PM" )
Jon Crain Posted March 5, 2008 Author Posted March 5, 2008 Perfect! I was just reading about calculating time by the number of seconds, and that seems to be the key to that calc. Thanks! jon
Recommended Posts
This topic is 6107 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