Mike, I'm not so sure... in your example, theDate is a string. Therefore, for GrooveDrm to get what he/she wants (WELCOME TO P2P!), a series of LEFT, MID, and/or RIGHT function calls will have to be used with the INSTR function as well.
Your code would definitely work if theDate was truly in a date format type, but it's not.
Greg Serrano
Michigan Dept. of Environmental Quality, Air Quality Division
|