How to convert 2007-001 this year and day to a normal date?

  • Thread starter Julian Date Conversion
  • Start date
J

Julian Date Conversion

I want find out how to convert a julain to a normal date format:
for example:-

Julian date is : 2007001 convert to "01 Jan 2007"

Regards,
 
J

John Spencer

You should be able to use the DateSerial function.

DateSerial(Left([Julian],4),1,Right([Julian],3))

IF Julian is a number field then
DateSerial([Julian]\1000,1,[Julian] Mod 1000)

You should check that Julian is a numeric value before trying this

--
John Spencer
Access MVP 2002-2005, 2007
Center for Health Program Development and Management
University of Maryland Baltimore County
..
 
Top