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

Converting Date to a Julian Date

Status
Not open for further replies.

Joelo

MIS
Sep 27, 2003
61
Please How can I convert 12/24/2003 to a Julian Date

Please Help me out
 
you calculate the difference between 2 dates with the datediff() function. so, compare 12/24/2003 with 1/1/2003





hth,
Foxbox
ttmug.gif
 
<%
function Julian( d )
Julian = datediff("D", dateserial( year(d),1,1) , d)
end function

var = Cdate("2/25/2004")
Response.Write Julian( var )
%>

hth,
Foxbox
ttmug.gif
 
Please I don't seem to understand....could you show me an example
 
Code:
<%
function Julian( d )
 Julian = datediff("D", dateserial( year(d),1,1) , d)
end function

var = Cdate("12/23/2003")
response.write "Date: " & var & "<br>" &_
               "Julian date:" & Julian( var )
%>

hth,
Foxbox
ttmug.gif
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top