Formatting a date in a FormView control?

D

David Veeneman

What's the simplest way to format a date in a FormView control? I've been
looking for something like a DataFormatString property, but it doesn't look
like the control itself, nor the consitutent controls in its templates, has
a property like that. What I want to do is apply a ShortDate format to a
date value.

What's the best way to handle this? Thanks in advance.
 
G

Guest

Try clicking on the control for date and on the Smart Tag go to Edit
bindings...

You can apply different types of formatting on the field.... {0:D}

I forget the parmater for shortdatetime. Maybe {0:d} ?
 

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

Members online

Forum statistics

Threads
474,266
Messages
2,571,079
Members
48,772
Latest member
Backspace Studios

Latest Threads

Top