Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Date question 1

Status
Not open for further replies.

jlg5454

Technical User
Jan 6, 2005
98
US
How do I format a string dd-mmm-yy to a date format mmmm yyy?
Thanks,
 
Hi!

Try Format(CDate(YourString), "mmmm yyy")

hth


Jeff Bridgham
Purdue University
Graduate School
Data Analyst
 
Thanks for your help. I think what the problem is that my date field is text and is shown for example as "09-JAN-06". I need this to read in date format as January 2006. Thanks for any help you can provide
 
Then you want
Code:
Format(CDate(YourString), "mmmm yyy[COLOR=red]y[/color]")
The "yyy" format gives you the last two digits of the year followed by the day number in the year. For example, today is "06123".

[small]No! No! You're not thinking ... you're only being logical.
- Neils Bohr[/small]
 
Thank you! It worked. I thought yyy and yyyy provided the same results.
 
Thanks Golom!

I just got back to this and see that you helped! We worked as a tag team on this one!!



Jeff Bridgham
Purdue University
Graduate School
Data Analyst
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top