Jump to content
Server Maintenance This Week. ×

Date calc error


This topic is 1988 days old. Please don't post here. Open a new topic instead.

Recommended Posts

I'm struggling...  does anyone have a quick/easy way to format the below as a standard date?  

Input: 2018-11-14T11:31:26.113

I would like it to format to: 11/14/2018 so I can use filemaker to sort by date, etc.  

Any help would be greatly appreciated!

Link to comment
Share on other sites

If you want to use the given input as a date (or as a timestamp) then this is not a question about formatting. You need to take the text input, convert it to date and store it in another field - either a calculation field returning a date result, or a date field.

The result will then be displayed in the date format used by your file - or in another format you chose for the field in Layout mode.

The conversion itself is rather trivial:

Let ( [
y = Left ( Input ; 4 ) ;
m = Middle ( Input ; 6 ; 2 ) ; 
d = Middle ( Input ; 9 ; 2 ) 
] ; 
Date ( m ; d ; y )
)

 

 

Link to comment
Share on other sites

This topic is 1988 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

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