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.

FileMaker Time Stamps

Featured Replies

Hello,

 

I'm currently writing an XML SOAP Request and it requires the time / date to be formatted in a certain way and I'm just wondering if FileMaker can format it like I require.


I require it to be formatted like this:

 

2013-04-26T10:10:00

 

I need the T to stay too...

 

Thanks,


Scott

Solved by doughemi

Go to solution

A calculation:

Let(

ts = YourTimestampField;//Substitute the name of your timestamp field here

Year(ts) & "-" & Month(ts) & "-" & Day(ts) & "T" & Hour(ts) & ":" & Minute(ts) & ":" & Second(ts)

)

 

If you don't have a timestamp field, create one with the calculation Timestamp( Date; Time)

Doug's almost there. I think you want leading zeroes on all the single digit numbers, yes? You'll have to correctly format those by wrapping each in a Right ( 0 & number ; 2 ).

  • Solution

Good catch, David.  Making the formula

 

 

Let(

ts = YourTimestampField;//Substitute the name of your timestamp field here

Year(ts) & "-" & Right(0 & Month(ts); 2) & "-" & Right(0 & Day(ts); 2) & "T" & Right(0 &Hour(ts);2) & ":" & Right(0 & Minute(ts);2) & ":" & Right(0 &Second(ts);2)

)

  • Author

Thanks for the help guys, I'll test this now! :-)

  • Author

Hey guys, thanks for the reply...

 

The only problem I've got is the month is missing a 0 for instance.

 

2013-04-01 and the calculation show 2013-4-01T14:00:00

 

Is there away I can put a 0 first?

Make sure that the highlighted part is copied correctly

 

Year(ts) & "-" & Right(0 & Month(ts); 2) & "-" & Right(0 & Day(ts); 2) & "T" & Right(0 &Hour(ts);2) & ":" & Right(0 & Minute(ts);2) & ":" & Right(0 &Second(ts);2)

The 0 should be in quotes because it is text... it might work the way it is now, but that could change in the future.

 

Right( "0" & Month( ts ) ; 2 )

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.