JTSmith Posted November 14, 2018 Posted November 14, 2018 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!
comment Posted November 14, 2018 Posted November 14, 2018 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 ) )
Recommended Posts
This topic is 2218 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 accountSign in
Already have an account? Sign in here.
Sign In Now