Try Format(Date(), "y")
Cheers, Andrew
Main Topics
Browse All TopicsI need the code to diplay the Julian Date (The number of that day of the year).
Eaxmple 1 - Today's Date = 9 Jan, 2001
Today's Julian Date = 009 (indicating the 9th day of the year)
--------------------------
Example 2 - Today's Date = 10 Sep, 2001
Today's Julian Date = 280(indicating the 280th day of the year)
--------------------------
There use to be a function that would do this, like Format (Date(), "ddd"), but this returns 'Sat', the day of the week, instead of a numeric value for the day of the year.
Thanks
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
To be honest Nic;o, textreport didn't pont me anywhere.
If you look at my code at the bottom of my question I had 'ddd' instead of 'yyy'.
What I ask for was the Julian Date of the day of the year, example 10 Sep, 2001. I have to trim the yy, but I can do that easily. If there is a Julian dateformat "yyddd" I would have liked to had that code. I wouldn't have spent so much time trying to figure it out.
I don't have a problem awarding textrepot the points though. Maybe this question might help someone else.
When you use:
format(now(),"yy-y")
You'll see that the first two "yy" are the two digit year and the second "y" is exactly the format(now(),"y") textreport proposed.
When you just need the daynumber with leading zero's, the you could also use:
right("00"&format(now(),"y
format(formatNOW(),"y"),"0
But it certainly has been a valuable Q, thus worth being saved for the "future generations" !
And I would really appreciate it when you give textreport the credits ;-)
Nic;o)
I apologize Nic;o, and also to you textreport, as I was playing with the "yy-y", my system returned EXACTLY what I want using the suggested comment by textreport.
I have no idea why it didn't work the other day, apparently something I had wrong. But it does work correctly now.
Thanks for straightening me out.
Points coming.
Business Accounts
Answer for Membership
by: assistantPosted on 2002-09-14 at 20:42:49ID: 7281257
Sorry, I forgot to state that I am using Access XP.