How do I combine a DATE Field with a TIME Field to form a DateTime field in Crystal Reports XI?

How do I combine a MULTIPLE DATE Field with a TIME Field to form a DateTime field in Crystal Reports XI?

My date field is broken up into year, month, day.  The data is the year field is 7 for 2007, 8 for 2008.  The day is 1,2,3,etc.  The month is 1,2,3,etc. Then I have a time field which is military time, in another field.  I need to be able to subtract DISCHARGE DATE (3 fields) and DISCHARGE TIME (1 military time field) from ADMIT DATE and ADMIT TIME (same format).  

I can do this in Crystal or Excel, I just need it!  Can anyone help!????
Becky EdwardsEpic Clarity DeveloperAsked:
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.

mlmccCommented:
You can create the datetime like this

Add a formula
DateTime(Date(2000+{YearField},MonthField,DayField,{TimeField})

If that doesn't work give an example of the fields

mlmcc
0
Becky EdwardsEpic Clarity DeveloperAuthor Commented:
I tried your suggestion(see below). Perhaps I didn't quite understand. Error msg said "Wasn't a formula"
DateTime(Date(2000+{BADPLPP.LPADT3},{BADPLPP.LPADT1},{BADPLPP.LPADT2}{BADPLPP.LPLAT}))

Where LPADT3 is Year
LPADT1 is Month
LPATD2 is Day
LPLAT is Time

if you browse data in these fields you will find:
LPADT3 is 8
LPADT2 is 11
LPADT3 is 14
LPLAT is 2359 (the time in military hours)
if i were to make theDate ToText it would look like this "11/14/2008" but I would have to format it like so:
ToText ({BADPLPP.LPADT1},'00')&'/'&ToText({BADPLPP.LPADT2},"00")&'/'&ToText({BADPLPP.LPADT3},"00")
0
Becky EdwardsEpic Clarity DeveloperAuthor Commented:
Please Help!!!!!  That particular one did not work, so I am still up in the air on this one.  Thank you.
0
Introducing Cloud Class® training courses

Tech changes fast. You can learn faster. That’s why we’re bringing professional training courses to Experts Exchange. With a subscription, you can access all the Cloud Class® courses to expand your education, prep for certifications, and get top-notch instructions.

mlmccCommented:
You'll have to do it this way

DateTime(Date(2000+{BADPLPP.LPADT3},{BADPLPP.LPADT1},{BADPLPP.LPADT2}),
                Time({BADPLPP.LPLAT})\100,{BADPLPP.LPLAT}) MOD 100,00) )

mlmcc
0
Becky EdwardsEpic Clarity DeveloperAuthor Commented:
It says "The remaining text does not appear to be part of the formula" and ,00)) is highlighted.
DateTime(Date(2000+{BADPLPP.LPADT3},{BADPLPP.LPADT1},{BADPLPP.LPADT2}),Time({BADPLPP.LPLAT})\100,{BADPLPP.LPLAT})MOD 100,00))

0
mlmccCommented:
Extra )'s

DateTime(Date(2000+{BADPLPP.LPADT3},{BADPLPP.LPADT1},{BADPLPP.LPADT2}),
                Time({BADPLPP.LPLAT}\100,{BADPLPP.LPLAT} MOD 100,00) )

mlmcc
0

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
Becky EdwardsEpic Clarity DeveloperAuthor Commented:
Thank you So MUCH!  It worked.
0
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
DB Reporting Tools

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.