melegant Posted June 26, 2003 Posted June 26, 2003 Is there a simple way to convert 10/11/2003 to October 11, 2003 ThANKS! Quote
*Experts* mutant Posted June 26, 2003 *Experts* Posted June 26, 2003 This method will get you very close to what you want: datevariable.ToLongDateString() Quote
melegant Posted June 26, 2003 Author Posted June 26, 2003 I had tried that and it still returned a short date (which threw me). ..>Maybe I did something wrong let me try again. For know I set up a function to translate the date.now.month.tostring to a String rep. (the day and year are already numbers (: ) ~! Quote
Administrators PlausiblyDamp Posted June 26, 2003 Administrators Posted June 26, 2003 I believe the .ToLongDateString works based on your regional settings - check under control panel to see what the lond date format actually is. Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
*Experts* mutant Posted June 26, 2003 *Experts* Posted June 26, 2003 You mean it still returns 10/11/2003? To me it returned: Saturday, October 11, 2003 Quote
*Gurus* Derek Stone Posted June 26, 2003 *Gurus* Posted June 26, 2003 Dim dt As DateTime = New DateTime(2003, 6, 26) dt.ToString("MMMM dd yyyy") Quote Posting Guidelines
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.