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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

date function 1

Status
Not open for further replies.

durug

Technical User
Mar 22, 2002
335
CA
Hi everybody!

Does anybody know a function that return the date giving the number of the day in the current year.
like: 45 = february 14

thanks a lot
durug
 
Could do somthing like this...

No_Days=DateDiff("d",cdate("1/1/" & year(Now)), Now) Saturday 12.00
im6.gif
im2.gif
im2.gif
20.00
im5.gif
im4.gif
im7.gif
3.00am
im8.gif
Sunday [img http
 
Thanks, but the problem is a little different: I need the opossite direction:
i have the number of the day in year and I need the function to return the day and month.

like the reverse of the datepart function or GaryC123 function.

I have the number 14 all I need to return is January, 14

thanks again
 
strdate=(cdate("1/1/" & year(Now)) + 45)-1 Saturday 12.00
im6.gif
im2.gif
im2.gif
20.00
im5.gif
im4.gif
im7.gif
3.00am
im8.gif
Sunday [img http
 
if I could I would give you 2 starts, not one :)
thanks a lot
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top