selzlerb Posted October 20, 2006 Posted October 20, 2006 Hello Team, I'm looking for a good way to change date formats from; 20060922 to 09/22/2006 I've been playing around with the text and date functions within a calculation field but I'm getting nowhere pretty fast. Any help here would be greatly appreciated. Thanks. - Sez
John Mark Osborne Posted October 20, 2006 Posted October 20, 2006 Show all the records and then select the MYTABLE::date field so the cursor is blinking in it. Use the formula below in a Replace Field Contents calculation after you have made a backup. Date(Middle(MYTABLE::date; 5; 2); Right(MYTABLE::date; 2); Left(MYTABLE::date; 4))
ThatOneGuy Posted October 21, 2006 Posted October 21, 2006 Nice and succinct, Mr. Osborne! And will it work without any delimiters, like a slash (/) or a dash (-) ? Just curious...
comment Posted October 21, 2006 Posted October 21, 2006 No delimiters are required when the length is fixed - i.e. days and months <10 are padded with a leading zero.
selzlerb Posted October 22, 2006 Author Posted October 22, 2006 (edited) John, Thanks! That works great! I appreciate the help. - Sez Edited October 22, 2006 by Guest
Recommended Posts
This topic is 6668 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