rrdwitt Posted April 4, 2019 Share Posted April 4, 2019 Hello all, I have tried the Format date function and several others but I cannot get the date formatted correctly. Seems a fairly simple rule but his one is not working. The number coming in is "01252020" I would like it to read January, 25 2020. But I keep getting the attached error. Thanks Quote Link to comment Share on other sites More sharing options...
sschardan Posted April 5, 2019 Share Posted April 5, 2019 I'm sure there is a more concise way to do this, but this works: var month = Left(Field("date"), 2) var day = Left((Right(Field("date"), 6)), 2) var year = Right(Field("date"), 4) return FormatDate((month + " " + day + " " + year), "lm d, yyyy"); Quote Link to comment Share on other sites More sharing options...
rrdwitt Posted April 5, 2019 Author Share Posted April 5, 2019 Thank you, I will give it a try. Privacy in mind, are you someone I used to work with? Your user name sounds familiar Quote Link to comment Share on other sites More sharing options...
sschardan Posted April 5, 2019 Share Posted April 5, 2019 You are welcome. And privacy in mind, yes. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.