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
Who is Participating?
burakiewiczConnect With a Mentor Commented:
or for the comma
DateTime dt = DateTime.Now;
dt.ToString("M/dd/yyyy , h:mm tt");
previos answer should be
dt.ToString("M/dd/yyyy @ h:mm tt")
dt.ToString("0:M/dd/yyyy @ h:mm tt")
mrcoulsonAuthor Commented:
Wow.  Had no idea it would be so simple.  Lord.  Thanks!
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.