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

Stripping the time stamp

Status
Not open for further replies.

xaic67

Technical User
Nov 8, 2006
8
US
I am pulling POS sales data into a query. I want to display this data by date ranges, however the timestamp is getting in the way. In my query I tried the following code, but it returns multiple years and does not recognize zeros? ie. I ask for date range 11/01/2006 - 11/15/2006 returns data from 11/10/2005 - 11/15/2006 code ex.

ConvDate: CDate(Month([dtmDate])&"/"&Day([dtmDate])&"/"&Year([dtmDate])
 
Hi x,

Have you tried Format?

e.g: ConvDate = Format([dtmDate], "Short Date")


ATB

Darrylle

Never argue with an idiot, he'll bring you down to his level - then beat you with experience.
 
X,

Sorry:

ConvDate: Format([dtmDate], "Short Date")

;-)



Never argue with an idiot, he'll bring you down to his level - then beat you with experience.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top