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!

Display Days in a month

Status
Not open for further replies.

ahhuang

Programmer
Apr 1, 2002
61
SG
I like to create a report(CR version 8) that displays each day with a selection of date range,example:
Start date :01-01-2002
End date:30-01-2002

Report should show 30 days starting from 1 to 30...
1 2 3 4 5 6 7 .....30

thanx for advice


 
Here is a formula that will get you what you have illustrated above. It allows for spanning of months. 30/4/02 to 2/3/02 will result in a string field of "30 1 2 "


stringvar dates;numbervar loops;stringvar hold;

for loops:= 0 to datediff("d",{start day},{end day})
do(
dates:=hold & totext(day({start day}+loops),0,"")&" ";
hold:=dates);

dates
Mike

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top