June 21, 200421 yr What is the most simple way to extract a date from a number or text field that has the date with the year first? Larry
June 21, 200421 yr Datefield contains the data 20040621. Create a calc field with date type as the result: Date(Middle(DateField;5;2);Right(DateField;2);Left(DateField;4)) Dan
June 21, 200421 yr Author Date() doesn't work. With Middle() & middle()& middle I can dissect it and add it back in month/day/year format. I'm still stumped on how to present a calculation field as a date. I can calculate middle(field,5,2) and get the number of the month. I make another field that uses Monthname(month#field) and the month name doesn't change when I go from one record to the next. What am I missing? Larry
June 21, 200421 yr Date does work, actually. Just change the semicolons to commas. I could have sworn your profile stated you were using version 7 at first.
June 22, 200421 yr Author I can make the calculated field a date and it doesn't help. I am importing the field that I am trying to use. I can create a field that changes the number so the year is last. It won't display as a date and it won't display anything when I import more data. I don't know what I'm missing. I've done this before with dates with no problem. Is it something to do with when the field gets put in, or storage options? I had similar problems with Record count in file and found record count. I messed with it until it displayed correctly after each change. Larry
June 22, 200421 yr Are you importing text or numbers? Is there anything else possibly in the field that could be causing problems, like a space or carriage return, etc.?
June 22, 200421 yr Author I didn't have Perform auto import options checked. It seems to be working now. I knew it was something stupid. Thanks everybody, Larry
Create an account or sign in to comment