Jump to content
We've recently updated our Privacy Statement, available here ×

Converting 19 March 2007 to 1070319


jongr

Recommended Posts

The database that I wish to report on uses dates (Long integers) in reverse order with the base in the year 1900.

i.e. The 19 March 2007 is held as 1070319

How can I input the date using the datatype calendar and convert it for use in the report query ?

Link to comment
Share on other sites

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Hi,

 

I think you could define a variable that would parse the value of the numeric report field into a java.util.Date that you then could format and display how you like in your report.

For details about parsing dates and numbers, you should consult the JDK documentation, especially the SimpleDateFormat class.

 

I hope this helps.

Teodor

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...