S
Steve Weixel
I'm having problems getting dates to format the way that I need them to. The
problem is that I'm used to the VB6 way of doing things, with which the
statement Format(37866, "dd MMM yyyy") would yield the string "02 Sep 2003".
If I run the same thing in dotNet, it gives me back the format string, which
isn't very useful.
It *does* work If I convert the value to a date beforehand, but
unfortunately that doesn't help me because I don't know what values are
dates, and what values are other types of numbers at the point where I
actually need to do the formatting.
So the question is, is there a way to format my numeric value as a date
without first converting it into a date? I've been at this for a while and
I'm at a loss...
Thanks in advance,
- Steve
problem is that I'm used to the VB6 way of doing things, with which the
statement Format(37866, "dd MMM yyyy") would yield the string "02 Sep 2003".
If I run the same thing in dotNet, it gives me back the format string, which
isn't very useful.
It *does* work If I convert the value to a date beforehand, but
unfortunately that doesn't help me because I don't know what values are
dates, and what values are other types of numbers at the point where I
actually need to do the formatting.
So the question is, is there a way to format my numeric value as a date
without first converting it into a date? I've been at this for a while and
I'm at a loss...
Thanks in advance,
- Steve