Solved

Julian day

Posted on 2001-08-31
4
440 Views
Last Modified: 2008-03-17
Hi, I need to convert a  date to a julian day..  any ideas....
0
Comment
Question by:Delboy
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
4 Comments
 
LVL 15

Accepted Solution

by:
lyonst earned 30 total points
ID: 6444524
0
 
LVL 27

Expert Comment

by:planocz
ID: 6444540
Hi Delboy,
 One way to do J dates is with date format,
  Dim SDate as string
      SDate= format(sdate, "yyy")
  This will give you the Julian date with the year on the front of it.
0
 

Author Comment

by:Delboy
ID: 6444592
FAB  thanks for your help
0
 
LVL 22

Expert Comment

by:ture
ID: 6445058
Delboy,

This little function will give you the julian date, always with 5 digits, in the format YYDDD.

Function Julian(d As Date) As String
  Julian = Format(d,"YY") & Format(D-DateSerial(Year(d)-1,12,31),"000")
End Function

Ture Magnusson
Karlstad, Sweden
0

Featured Post

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Suggested Courses
Course of the Month11 days, 5 hours left to enroll

632 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question