Hi all,
I'm aware that there is a Convert() function, which can be used for dates and takes an argument, ie, 101, 108, etc for specific formats of dates. My question is--Is there an easy way to custom format a date?
I'm thinking something similar to the vb Format() function, which can accept a custom string format argument.
For example, say today is 5/15/2008, I want to display just the format YYYYMM, ie, 200805.
How can I do that without a complex string-parsing function combined with some cast or convert function (keeping in mind the example format could be anything--I may also want 2008_05, or May 2008 or whatever).
Thanks,
--Jim
I'm aware that there is a Convert() function, which can be used for dates and takes an argument, ie, 101, 108, etc for specific formats of dates. My question is--Is there an easy way to custom format a date?
I'm thinking something similar to the vb Format() function, which can accept a custom string format argument.
For example, say today is 5/15/2008, I want to display just the format YYYYMM, ie, 200805.
How can I do that without a complex string-parsing function combined with some cast or convert function (keeping in mind the example format could be anything--I may also want 2008_05, or May 2008 or whatever).
Thanks,
--Jim