Link to home
Start Free TrialLog in
Avatar of mrcoulson
mrcoulsonFlag for United States of America

asked on

How can I add a comma or @ to a DataFormatString

I have the following dataformatstring in a gridview to format a date.  It works quite well, but I'd like to put a comma or @ between the date and time just to be fancy and make the department who's getting this app a little more enthused when they see it.

The string is:

0:M/dd/yyyy h:mm tt
Avatar of burakiewicz
burakiewicz
Flag of United States of America image

dt.ToString("0:M/dd/yyyy @ h:mm tt")
ASKER CERTIFIED SOLUTION
Avatar of burakiewicz
burakiewicz
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of mrcoulson

ASKER

Wow.  Had no idea it would be so simple.  Lord.  Thanks!