This is a migrated thread and some comments may be shown as answers.

formatstring for YYYYMMDDT000000Z

1 Answer 166 Views
Grid
This is a migrated thread and some comments may be shown as answers.
DragonBall
Top achievements
Rank 1
DragonBall asked on 19 Mar 2009, 06:23 AM
    <GroupByExpressions> 
                        <telerik:GridGroupByExpression> 
                            <GroupByFields> 
                                <telerik:GridGroupByField FieldName="headerdate"  FormatString="{0:dd-MMM-yy}" HeaderText=" " HeaderValueSeparator=" " SortOrder="Descending" /> 
                            </GroupByFields> 
                            <SelectFields> 
                                <telerik:GridGroupByField FieldName="headerdate" HeaderText=" " FormatString="{0:dd-MMM-yy}"  HeaderValueSeparator=" "/> 
                            </SelectFields> 
                        </telerik:GridGroupByExpression> 
                </GroupByExpressions> 
headerdate value is = 20090306T034445Z
and it wont change to {0:dd-MMM-yy} or any time format
formatstring for YYYYMMDDT000000Z wont accept from the field

1 Answer, 1 is accepted

Sort by
0
Daniel
Telerik team
answered on 19 Mar 2009, 10:00 AM
Hello Manuel,

The desired formatting will be applied only if headerdate is of type DateTime. It seems to me that it is string in your scenario.

Let me know if you have more questions.

Best regards,
Daniel
the Telerik team


Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
Grid
Asked by
DragonBall
Top achievements
Rank 1
Answers by
Daniel
Telerik team
Share this question
or