Newbies bluebulb Posted April 15, 2002 Newbies Posted April 15, 2002 The [FMP-CurrentDate:short] tag produces a date in the MM/DD/YY format. FileMakerPro's short date format is MM/DD/YYYY. So an search generated via a CDML tag will fail. Anyone know a way around this? Thanks, PK
Keith M. Davie Posted April 15, 2002 Posted April 15, 2002 I hope that through your own experimentation you have resolved this issue by now. If not, you may want to look back (around Feb this year) in this forum for a topic entitled "currentdate - Research is good for the soul ", whcih I began. Also look at the thread by Turansky to which it refers. You may find some useful information there.
Vaughan Posted April 16, 2002 Posted April 16, 2002 According to the CDML reference, the dates are returned according to the short and long date formats defined by the operating system. Try changing the country preferences for your computer and see if it makes a difference.
Garry Claridge Posted April 16, 2002 Posted April 16, 2002 Is the page with the [FMP-CurrentDate] tag being processed by WebCompanion first? All the best. Garry
Newbies bluebulb Posted April 17, 2002 Author Newbies Posted April 17, 2002 Apologies for not looking carefully through past posts before askig the question. Thanks Keith for pointing this out. Just in case anyone is looking a solution and comes across this posting, here's what I did: Created a calculation field called "Today" Today=Status(CurrentDate) The calculation result is Date. And, it is an unstored calculation result. This produces the current date in the same format that FileMakerPro uses, so the CDML compares this field to the date entered by FilemakerPro when the record was created. Thanks
Keith M. Davie Posted April 18, 2002 Posted April 18, 2002 Glad it helped. I knew it was there and was too lazy to write it out.
Recommended Posts
This topic is 8324 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