My goal is to take a date such as 1/1/2010 and convert it to 1/2010 or 1/10, either or. The way I am doing this is by using the format function as follows:
The problem is this spits out a string and I need this as a date for ordering. The resolution should be to use the cdate function which converts the string to a date such as this:
The problem again is that converting this string spits out the format as a date 1/1/2010. As you can see, I am back to the drawing board.
Is there any way to force a format with cdate? Perhaps cdate is the wrong function in this case.
Code:
Format([table].[date],"mm/yyyy")
Code:
CDate(Format([table].[date],"mm/yyyy"))
Is there any way to force a format with cdate? Perhaps cdate is the wrong function in this case.
Comment