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

How to format time in 24 hour format e.g 10/10/2013 05:20:18 PM to 10/10/2013 17:20:18

So ... 10/10 ... which is month and which is day?  :-)


Well, we should be safe if we stick to the right functions.  Maybe try:

Let ( [
t = GetAsTime ( timestampField ) ; 
secs = GetAsNumber ( t )
] ;
t + ( secs ≥ 43200 and PatternCount ( timestampField ; "pm" ) ) * 3600 
)

How to convert 10/10/2013 05:20:18 PM to 10/10/2013 17:20:18

 

Not sure what exactly you mean by "convert". The title of the thread is "Format timestamp"; so perhaps all you need to do is format the field to display the time in 24 hour format?

  • Author

Thanks LaRetta

Its works but its count 1 hr more e.g 10/10/2013 05:20:18 PM Result is: 18:20:18 not 10/10/2013 17:20:18

Try "10/10/2013 05:20:18 PM" as argument for GetAsTimestamp().

???

 

 

All three of you.

Edited by comment

I meant this:

 

post-80889-0-69341300-1381418399_thumb.p

That's merely a coincidence, because your file/OS is set to use the 24-hour time format. Had you opened a file created in a 12-hour locale, you would see this:

 

post-72594-0-33649700-1381419183_thumb.p

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.