May 6, 2009 #1 douggy Technical User Joined Jan 18, 2001 Messages 78 Location 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 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
May 6, 2009 #2 S SkipVought Programmer Joined Dec 4, 2001 Messages 47,492 Location US 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, Don't let the Diatribe... talk you to death! Just traded in my old subtlety... for a NUANCE! Upvote 0 Downvote
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, Don't let the Diatribe... talk you to death! Just traded in my old subtlety... for a NUANCE!