Skip to Content
author's profile photo Former Member
Former Member

Convert Calendar date to Julian date format

Does anyone have the logic/code to convert normal calendar date(YYYYMMDD) to Julian format using ABAP ?

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Posted on Dec 29, 2004 at 03:49 PM

    Can you remind us all what julian date is. Is it not the running day number of the year?

    for example......12/29/2004 = 364/2004

    Regards,

    Rich Heilman

    Message was edited by: Rich Heilman

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 29, 2004 at 03:52 PM

    data: julian_day(3) type n,

    date_aux type d,

    date_I_need type d.

    • first day of the year

    concatenate date_I_need(4) '0101' into date_aux.

    julian_day = date_I_need - date_aux.

    julian_day = julian_day + 1.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.