AlanP Posted June 9, 2005 Posted June 9, 2005 We have a timestamp field for each record created, however the format shows mm/dd/yy 00:00:00 so searching is impossible (can't search by just date) does anyone have a solution where you can just search by 'date' even though we are using a timestamp or is there a way to just have the timestamp show a 'date' in FM7? (we were able to do that in FM5). THANKS!!!
SlimJim Posted June 9, 2005 Posted June 9, 2005 Given that FMP will refuse to search a timestamp field unless you are entering a valid timestamp then this looks like a scripted solution is required. For example to find the date 06/09/2005 you will have to do a range find 06/09/2005 00:00:00...06/09/2005 23:59:59. The modification for a range of dates is fairly clear. You will not want to be entering all of this if you do a lot of date searching so you need to script the find.
AlanP Posted June 9, 2005 Author Posted June 9, 2005 thanks for the reply! Is there a way to add a 'date' automatically when a record is created or updated? We really don't need the hh/mm/ss information.
stanley Posted June 10, 2005 Posted June 10, 2005 Alanp: Create a field which is a Date field; you can then set it to auto-enter the modification date ("options" in define fields). Likewise you can create another which auto-enters the creation date... -Stanley
Recommended Posts
This topic is 7175 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