I use Macola software and they store their dates as an 8 digit integer YYYYMMDD and they supply a numbertodate UFL to convert the number to a date. If you give me your email address I'll gladly email it to you.
dgilsdorf@altavista.com
What database are you working with by the way? I thought the YYYYMMDD integer was fairly unique. Software Support for Sage Mas90, Macola, Crystal Reports, Goldmine and MS Office
This one will work for version 8 or later:
date(picture(totext({datefield},0),"xxxx/xx/xx")
This one will work for all versions:
Date (tonumber(totext({datefield},0,""[1 to 4]),
tonumber(totext({datefield},0,""[5 to 6]),
tonumber(totext({datefield},0,""[7 to 8]) ) Mike
mbaron:
This is driving me nuts: I am pulling tha data from MSSQL 7.0 and in database it is a "char" "20011002", when applying the formula in: Format editor - text interpretation
date(picture({reconcile.adjudication_DT},"xxxx/xx/xx")
I get "the formula has to be a number"
but when using
NumberToDate(ToNumber({reconcile.adjudication_DT}))
i get "the formula result must be a number"
am i in the wrong format field editor or something?
sarakaj:
You need to create a fomula field to change the date. The text interpetation area you mention has nothing to do with the change.
dmccallum: What are you getting when you but the formula in your report? It should be giving you mm/dd/yyyy format when it is placed in the report. Mike
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.