With the year and the day number, what you have is a Julian date. Here is a
function that will convert a Julian date to a serial date:
Public Function JulianToSerial(lngJulianDate As Long) As Date
Dim serialdate As Date
JulianToSerial = DateSerial(((Year(Date) \ 10) * 10) + Int(lngJulianDate
/ 1000), 1, lngJulianDate Mod 1000)
End Function
With the year and the day number, what you have is a Julian date. Here is a
function that will convert a Julian date to a serial date:
Public Function JulianToSerial(lngJulianDate As Long) As Date
Dim serialdate As Date
JulianToSerial = DateSerial(((Year(Date) \ 10) * 10) + Int(lngJulianDate
/ 1000), 1, lngJulianDate Mod 1000)
End Function
You can call a function in a query. The function has to be a Public function
in a standard module. Then you use a calculated field to return the results:
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.