Newbies Corys8646 Posted November 20, 2007 Newbies Share Posted November 20, 2007 hello, I have what I hope is an easy question. I have a file I am importing with a date formated: Nov 20, 2007, modifying the source is not an option unfortunately. Problem is, Filemaker is not seeing that as a date, so I am not able to do searches based on date. Is there a calculation field I can create that will format my source field into a date that filemaker will recognize? or is there a better way of doing this? thanks in advanced! Link to comment Share on other sites More sharing options...
Fitch Posted November 20, 2007 Share Posted November 20, 2007 It's not pretty, but here: Substitute ( yourField ; [ "Jan" ; 1 ] ; [ "Feb" ; 2 ] ; [ "Mar" ; 3 ] ; [ "Apr" ; 4 ] ; [ "May" ; 5 ] ; [ "Jun" ; 6 ] ; [ "Jul" ; 7 ] ; [ "Aug" ; 8 ] ; [ "Sep" ; 9 ] ; [ "Oct" ; 10 ] ; [ "Nov" ; 11 ] ; [ "Dec" ; 12 ] ; [ " " ; "/" ] ) Link to comment Share on other sites More sharing options...
sbg2 Posted November 20, 2007 Share Posted November 20, 2007 You will also want to remove the comma so add another line to your substitute calc... [ "," ; "" ] Link to comment Share on other sites More sharing options...
Lee Smith Posted November 20, 2007 Share Posted November 20, 2007 How about this one. Date((Position("JanFebMarAprMayJunJulAugSepOctNovDec", LeftWords(Yourdate, 1), 1, 1) + 2) / 3, MiddleWords(Yourdate, 2, 1), RightWords(Yourdate, 1)) HTH Lee Link to comment Share on other sites More sharing options...
Newbies Corys8646 Posted November 20, 2007 Author Newbies Share Posted November 20, 2007 Perfect...thanks for the replies! Link to comment Share on other sites More sharing options...
Recommended Posts
This topic is 5995 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