Medium Date Format

Samsep
11-11-2004, 04:50 PM
I have been searching for a while, but can not find an answer to this question: How can I get a date from a database to be dispayed as a medium date (dd-mmm-yyyy) in a bound label?? I can only seem to get it to display as a long date (mm/dd/yyyy Time)

Davearia
11-12-2004, 02:07 AM
Here you are,Console.WriteLine(Now().ToString("dd/MMM/yyyy"))Hope this helps, Dave. :D

MKoslof
11-13-2004, 08:43 AM
Also, what is the defined date format in your database :)...if you are sending data back and forth to the underlying database, you need to make sure your table is set up properly as well.

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum