Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

eBackOffice Misc Utilities

How to convert eBO julian dates by Flloyd
Posted: 26 Jul 03

With the eBackOffice financial apps, the dates are stored in SQL as julian dates.  The application uses two sp's, appdtjul_sp and appjuldt_sp to convert between gregorian and julian dates.

The essence of the conversion that you can paste into a SQL stored proc or trigger is this:

/* Return a date (today) as a julian date:   */
SELECT datediff(dd,"1/1/80",getdate())+722815

/* Convert Julian to gregorian:  */
SELECT dateadd(dd,@juldate-722815,"1/1/80")

The general formula to use in other environments is:

((y - 1) * 365) + (97y - 99) / 400 + days this year

NOTE: Use integer calculations removing the remainders from the result. This formula also works for leap year.

Back to Epicor solutions FAQ Index
Back to Epicor solutions Forum

My Archive

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close