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

Hi Everyone,

Simple one here that is throwing my brain!

I have a time entry field (recording the time a job started). So a user might enter "09:00" which is stored internally in FMP as "09:00:00" as shown by the data debug viewer.

I then want to extract this time into a description field I use for an invoice line item. As I'm not interested in seconds, I use the following calc:

Left ( Time_Start ; 5 )

And add this into the formation of the text description field with the usual concatenations.

The result, however for the above example time is to produce:

9:00:

ie the leading zero isn't being counted in the "5" characters extracted.

Any quick and easy solutions. Seems to be that FMP isn't being very rigerous in how it's handling its time formats (ie it shows it one way in the data viewer, but handles it another in calcs).

Cheers,

Richard.

Left ( Time_Start ; 5 )

Internally FMP stored the time as the number of seconds since midnight. The display of the time is dependent on the system localisation and it can change.

Instead of using a calculation that makes assumptions about the time format, pull the hours and minutes out explicitly and concatenate them together:

Hour( Time_Start ) & ":" & Minute( Time_Start )

All of this may be moot: you can change the time format of any field and set how it displays independently of the system and the other fields. Right-click on the field and choose Time format.

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.