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

help pulling data for 1st or 15th every month ???

Status
Not open for further replies.

tonygr

Technical User
Jan 20, 2005
42
GB
Hi All,
I am using crxi11 developer, sql2000 server.
I am having trouble pulling all data for the 1st of every month or 15th of every month, ignoring month and year.

The date field is held in datetime type,

any help greatly appreciated.

tonygr
 
DatePart ("d", {date1}) will give you the day of the month. Put it in a formula field, if the formula field were called @DayOfMonth then you'd test @DayOfMonth in [1, 15]

[yinyang] Madawc Williams (East Anglia, UK). Using Windows XP & Crystal 10 [yinyang]
 
Thanks Madawc,

Works a treat:)

Regards
Tonygr
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top