Formatar o Tipo Data (DateTime) no GridView
25/09/2006
0
Bisys
Posts
26/09/2006
Rhosaka
27/09/2006
Bisys
The data format string consists of two parts, separated by a colon, in the form { A : Bxx }. For example, the formatting string {0:F2} displays a fixed-point number with two decimal places.
The character after the colon (B in the general example) specifies the format to display the value in. The following table lists the common formats.
Format character - Description
C - Displays numeric values in currency format.
D - Displays numeric values in decimal format.
E - Displays numeric values in scientific (exponential) format.
F - Displays numeric values in fixed format.
G - Displays numeric values in general format.
N - Displays numeric values in number format.
X -Displays numeric values in hexadecimal format.
Note
The format character is not case-sensitive, except for X, which displays the hexadecimal characters in the case specified.
03/11/2006
Caiquedourado
Clique aqui para fazer login e interagir na Comunidade :)