I have string values representing the month of a transaction in two digit format. I need the values in MMM format and am currently using a case statement to convert them. I wanted to know if there was a way to use the format function to accomplish the same thing with one line of code. I've tried the line below but it always returns JAN no matter which two digit string is present.
I want to go from this:
01
02
03
to this:
JAN
FEB
MAR
Code:
newMonth = UCase(Format(oldMonth, "MMM"))
I want to go from this:
01
02
03
to this:
JAN
FEB
MAR