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!

display julian date on a form 1

Status
Not open for further replies.

ocan

Programmer
Jun 28, 2004
31
US
i am looking for the code to display julian date on a form.

thanks.
 
Something like this ?
Format(Date(), "YYy")

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
There are several different interpretations as to what "julian date" actually means. What do you mean by julian date?

Good Luck
--------------
To get the most from your Tek-Tips experience, please read FAQ181-2886
As a circle of light increases so does the circumference of darkness around it. - Albert Einstein
 
Thanks PHV,

I'm not very familiar with date codes. How could i get
(three digit date)(last 2 digits of year)? same thing you did but with the day# 1st. I appreciate your help.
 
thank you so much PHV & Bob. That's exactly what I needed.
 
THIS JUST IN ... *** ... *** ... ***

ocan,

The following will return 1, 2 or 3 digit followed by 2
For example, entering my birth month and day, Jan 2nd in the form of 1/2/4 returns 204, not 00204
Format(Date(),"y") & Format(Date(), "YY")

If you need to always have 3 digits followed by 2, use:
Format(Format(#1/2/4#,"y"),"000") & Format(Date(), "YY")


HTH,
Bob [morning]
 
thanks bob-the 2nd code is the one that works best. perfect!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top