Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Date conversion from JDE format 4

Status
Not open for further replies.
Apr 12, 2001
29
US
I'm trying to use Crystal Report Writer to create some reports off of JDE. Problem is that I can seem to convert their dates.

JDE Date = 110365 should convert to 12/31/2010
JDE Date = 100111 should convert to 4/20/2000

The first digit is the century, the next two digits are the last two digits of the year and the three remaining digits are the day of the year. Can anyone help me? This obviously isn't your standard julian date and I'm too close to the trees right now.
 
Is this a character string with numbers in it or is it a true numeric value. Ken Hamady
On-site custom Crystal Reports Training and Consulting.
Quick Reference Guide to using Crystal in VB.
 
Date(truncate({your.field} / 1000) + 1900 , 1, 1)

+ Remainder ({your.field},1000)

- 1
Ken Hamady
On-site custom Crystal Reports Training and Consulting.
Quick Reference Guide to using Crystal in VB.
 
This is exactly what I was looking for! Thanks a million times over! Wow.
 
Slimshades,

Go to the crystal decisions website and download the NumbertoDate() function. NumbertoDate() takes an 8 digit integer in teh YYYYMMDD format an converts it to true date. Several software packages, ACCPAC and Macola are the ones I am most familiar with, store the dates in the manner. Software Support for Macola, Crystal Reports and Goldmine
dgilsdorf@mchsi.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top