Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

  • Newbies

I need to have a calculation field display text and a time stamp. The calculation field I have created works fine for AM times but not PM times. The PM times always display in 24 hour clock format. How can I change this. I swear I have done everything right...please ...prove me wrong.

Bill

if (hour(timefield) is >12,hour(timefield)-12&":"&minute(timefield)&":"&seconds(timefield) & " PM", hour(timefield)-12&":"&minute(timefield)&":"&seconds(timefield) & " AM")

  • Author
  • Newbies

Christian,

Thanks very much!

Works well except that it no longer displays "on the hour" times with two 0s, ie, 6:00 pm is now displayed 6:0 PM. Also, since I just cut and pasted your solution I don't really have an understanding of how it worked. Why is this process seemingly so un-intuitive?

Bill Milhoan

Case Western Reserve University

Cleveland, OH

I infer that you have a time field and a text field (into which you type) and that they are concatenated in a calculated field.

Instead of using a calculated field, try creating a text block and lay a second instance of your time field on top in the upper left.To the right of time field, but still within the text box, insert a second instance of your text field as a Merge field (CTRL+M). You can format the time field as you desire. Type directly into the original text field and the text block should look like the calculated field you originally conceived.

Have a look at my "RussCalcs From Oz" sample file in the Samples Section of this forum, under the topic "Handy Bits". Click on the Views column header and it will be close to the top. Make sure you scroll down towards the bottom of the thread to get the latest version (v4). When you download the file, under the Time tab, there are lots of ways to display what you want.

cjaeger -- why does your calculation subtract 12 even from the AM part. This seems to return negative hours.

>why does your calculation subtract 12 even from the AM part. This seems to return negative hours.

because I simply copied and pasted the PM formula.

Thanks for pointing out. (Somebody seems to read my post at last ...) grin.gif

Correct formula:

if (hour(timefield) is >12,hour(timefield)-12&":"&minute(timefield)&":"&seconds(timefield) & " PM", hour(timefield)&":"&minute(timefield)&":"&seconds(timefield) & " AM")

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.