converting datetime

W

warbornster

I would like to convert a datetime to a specific format. I was trying
to use Convert.ToString(date,
CultureInfo.CurrentCulture.DateTimeFormat.ShortDatePattern) but I got
some error. I would just like to see the date, not the time, how do I
do that ?
 
C

ClayB

If you just want to see the short date pattern, then you can try

date.ToString("d")

=================
Clay Burch
Syncfusion, Inc.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top