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!

Convert Day of Year to date

Status
Not open for further replies.

AKMonkeyboy

IS-IT--Management
Feb 4, 2002
141
US
I have a field that contains what day of year it is i.e.:

Feb 2 = 33

Is there a function to turn the "33" back into Feb 2?

I'm stumped...

Monkey

Give a man a fish, and you feed him for a day.
Teach a man to fish, and you feed
him for life.
Send a man to Tek-Tips and the poor sap can find out how to fish on his own, and learn more by doing it.
 
This will give you what you want.


DateSerial(Year(Date()),1,1)+33


Paul
 
Oops.

DateSerial(Year(Date()),1,0)+33

Read my results backwards.

Paul
 
Paul

I think that needs to be
Code:
DateSerial(Year(Date()),1,[red]0[/red])+33
 
Try and get an answer a little faster next time, would ya? I'm tired of waiting 6 minutes for answers[tongue]

Amazing! Works like a charm. Thanks to all!

Monkey



Give a man a fish, and you feed him for a day.
Teach a man to fish, and you feed
him for life.
Send a man to Tek-Tips and the poor sap can find out how to fish on his own, and learn more by doing it.
 
you're right MonkeyBoy, Golom's usual reply time is probably less than 5 minutes, he must be slacking today!

[rofl2]

leslie
 
Why not simply this ?
DateSerial(Year(Date()),1,33)

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top