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 Shaun E on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Julian Date

Status
Not open for further replies.

GeneN24

IS-IT--Management
May 1, 2003
17
US
Can someone help me format a date/time field (TRANS_DATE) into Julian Date format(2003204).

Thank you
 
I haven't found any Julian date formatting in Crystal. You could use a formula to create a numeric value.
To do this use the DatePart function to get the year of the datefield. Then use the DateDiff function to calc the number of days from Jan 1 of datefield to datefield. Put these together to get your Julian date.

I hope there is an easier way, but I have not seen it.

mrbill
 
I believe this information worked. However, can someone tell me how to place leading zeros in front of the julian date (to always display 3 bytes) in cases the date is < 100 ? For example January 1 should display &quot;001&quot; instead of &quot;1&quot; .

Thanks for all of your help so far.
 
I figured this out. Thanks for your help.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top