Dates formatted Differently on another pc

Good afternoon!  I have a 10 year fiscal evaluation report - I have created formulas for each year

if month ({?Current Fiscal Year Date To}) >= 7 then "FY"& totext ( year ({?Current Fiscal Year Date To})+1)
else  "FY" & totext (Year ({?Current Fiscal Year Date To}))

On my pc they are FY2017 but on another person's pc they return a value of FY2017.00

I've never seen this before - any help would be appreciated!

thanks - CS
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Mike McCrackenCommented:
Check the WIndows setting.  Crystal uses the Windows default settings for number and date formats

You can avoid the problem by adding a formatting string to the ToText function

if month ({?Current Fiscal Year Date To}) >= 7 then 
           "FY"& totext ( year ({?Current Fiscal Year Date To})+1, 0, '')
           "FY" & totext (Year ({?Current Fiscal Year Date To}), 0, '')

Open in new window

The 0 says format with 0 decimal places.
The '' says use nothing for the thousands separator

Another one that would work is
if month ({?Current Fiscal Year Date To}) >= 7 then 
           "FY"& totext ( year ({?Current Fiscal Year Date To})+1, '0')
           "FY" & totext (Year ({?Current Fiscal Year Date To}), '0')

Open in new window


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
rporter45Author Commented:
Worked perfectly! thanks very much!
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.