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

Convert number to date

Status
Not open for further replies.

douggy

Technical User
Jan 18, 2001
78
0
0
GB
Hi there,

I have to convert the following number format to a date. ie something I can query on for where a year month between x and y.

Number is in following format "200801" YYYYMM

Thanks for your help in advance.

Mark
 


hi,
Code:
EndOfMoDte: DateSerial(Mid("200801",1,4),Mid("200801",4,2)+1,0)
StrtOfMoDte: DateSerial(Mid("200801",1,4),Mid("200801",4,2),1)


Skip,
[sup][glasses]Don't let the Diatribe...
talk you to death![tongue][/sup][sub]
[glasses]Just traded in my old subtlety...
for a NUANCE![tongue][/sub]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top