How to format Date Inside DataColumn

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Raed Sawalha

    How to format Date Inside DataColumn

    Hi There,

    How can I format a date inside a data column? I have been looking around but
    can't find any information on it.

    Regards

    c.Controls.Add( New LiteralControl( dataR(dataC.Col umnName)))
  • Psycho

    #2
    RE: How to format Date Inside DataColumn

    Hi
    In grid properties on your column you there is a field Named
    DataFormatStrin g and you can make your format as follow :
    {0:dd/MM/yyyy HH:mm}
    be carefull mm = minutes and MM = month

    Cheers.

    "Raed Sawalha" wrote:
    [color=blue]
    > Hi There,
    >
    > How can I format a date inside a data column? I have been looking around but
    > can't find any information on it.
    >
    > Regards
    >
    > c.Controls.Add( New LiteralControl( dataR(dataC.Col umnName)))[/color]

    Comment

    Working...