VincentO'B Posted July 6, 2010 Posted July 6, 2010 Can anyone suggest a way through my brick wall. I am trying to append the above abbreviations to a date so far I have: If (Day ( IssueDate ) = 1 or 21 or 31; "st" ;"" ) If the date is 23rd the result is 23st which not what I expected, I have tried everything I can think of maybe I am missing something obvious.
comment Posted July 6, 2010 Posted July 6, 2010 See: http://fmforums.com/forum/showtopic.php?tid/168355/
VincentO'B Posted July 6, 2010 Author Posted July 6, 2010 Thank you for pointing me in the right direction Comment. That worked a treat. I used.......Case( not IsEmpty(date), DayName(date) & ", " & MonthName(date) & " " & Day(date) & Case( PatternCount( " 1 21 31 ", " " & Day(date) & " " ), "st", PatternCount( " 2 22 ", " " & Day(date) & " "), "nd", PatternCount( " 3 23 ", " " & Day(date) & " " ), "rd", "th" ) ) A big thanks to -Queue- for the code. Vinny
Recommended Posts
This topic is 5312 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