Skip 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.

Concatenate Date & Time Calculation

Featured Replies

Hi Guys,

I can't seem to figure this one out, it should be simple and I've just spent the last hour friggin' around and getting nowhere (maybe i'll have to downgrade my status to novice).

I have a script that inserts the date and time into 2 seperate fields formatted eg. date "Mon, 15 Aug 2005" and "10:35:42 PM" respectively.

I have a calculation that concatenates them with some extra text ie. "Last Modified: Date @ Time bla bla.

The problem is that although I have used the functions TextToDate(Date)/Time etc... the calculation displays the date and time in the wrong format ie. "Last Modified: 15/08/2005 @ 22:35:42" which is not the format that I want.

What the?

Please help :bang:

One among several could be this one:


"Last modified: "  & 



DayName ( aDate ) & " " & 

Day ( aDate ) & " " & 

MonthName ( aDate ) & " " & 

Year ( aDate ) & " @ " & 



Time ( 

Mod(Hour ( aTime );12) ; 

Minute ( aTime ) ; 

Seconds ( aTime ) )  & 

Case(-1+Int((Hour ( aTime )/12));" AM";" PM")

You might exchange the ";" if your OS prefs demands it!!

--sd

Alternatively, if this for display only, type the following directly on the layout:

Last Modified: <> @ <> bla bla

Select the new text object by clicking on it once, then format the date and time in the same way as you have done for the fields.

  • Author

Excellent!

Thanks very much comment!, that's exactly what I needed.

thanx also to Soren. I didn't try that method but I'm sure it would have worked also.

Create an account or sign in to comment

Important Information

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

Account

Navigation

Search

Search

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.