Converting a Date to a string

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have a date in 01/01/2004 form and want to convert that value to January 2004 form as a string. Is there a function in VBA that will let me do this?

Thanks
 
Hi,
sub test()
mystring="01/01/2004"
mydate=format(mystring,"mmmm dd yyyy"
debug.print mydate
end sub


--
John
johnf 202 at hotmail dot com


| I have a date in 01/01/2004 form and want to convert that value to January
2004 form as a string. Is there a function in VBA that will let me do this?
|
| Thanks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top