Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11
Default Converting a Date to a string

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
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 690
Default Converting a Date to a string

Dim dte As Date
Dim s As String

dte = "1/1/2004"
s = Format(dte, "mmmm yyyy")

returns:
January 2004

HTH
Dana DeLouis

"Sworkhard" wrote in message
...
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




Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Converting string to number kenppy New Users to Excel 9 March 5th 10 07:18 PM
Converting a date to a text field w/o converting it to a julian da LynnMinn Excel Worksheet Functions 2 March 6th 08 03:43 PM
Converting a Date to a string Sworkhard Excel Programming 2 July 27th 04 09:44 PM
Converting a string date into a Excel Date Phillips Excel Programming 0 November 24th 03 08:54 PM
Converting a range to string Robert Stober Excel Programming 1 October 3rd 03 09:39 PM


All times are GMT +1. The time now is 06:08 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"