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.

Date and time fields concatenated.

Featured Replies

Have a form for creating classes. In it have four fields.

name of class (formatted as text)

date of class (field formatted as Date)

start time of class (formatted as Time)

end time of class (formatted as Time)

How do I concatenate so that they can show up on a form as "1/1/2019 1:00pm-2:00pm". I was able to use GetAsText function on the date and time fields so I could get concatenation but now they read "1/1/2019 13:00pm-14:00pm "

 

If this is for display only, you can merge all 3 fields in a single text block and format them the same way you would format date and time fields placed directly onto the layout.

If you want a calculated result (result type is Text), try =

ClassDate
& " " &
Mod ( Hour ( StartTime ) - 1 ; 12 ) + 1 
& SerialIncrement ( ":00" ; Minute ( StartTime ) ) 
& If ( StartTime < 43200 ; "am" ; "pm" ) 
& "-" &
Mod ( Hour ( EndTime ) - 1 ; 12 ) + 1 
& SerialIncrement ( ":00" ; Minute ( EndTime ) ) 
& If ( EndTime < 43200 ; "am" ; "pm" ) 

 

 

Edited by comment

Let ( [ 

from = GetAsTimestamp ( DateOfClass & " " & StartTime )  ; 
to = GetAsTimeStamp ( DateOfClass & " " & EndTime ) 

]; 

DateOfClass & " " & GetAsTime ( from ) & "-" & GetAsTime( to ) 

)

  • Author

Thank you both for your help! I had not used either of these functions before. The great thing about sharing a solution is looking up the function and realizing you can use it elsewhere.

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.