Format date column as m/d/yy

How can I format a date column with a 2 digit year (m/d/yy)?

I tried this and it still shows 4 digit years.

        <GridColumn Field="@nameof(TrxModel.SettleDt)"
                    HeaderText="Date"
                    Type="ColumnType.Date"
                    Format="m/d/yy"
                    Width="90">
        </GridColumn>

3 Replies

JP Jeevakanth Palaniappan Syncfusion Team September 10, 2021 08:11 AM UTC

Hi Keith, 

Greetings from Syncfusion support. 

We have checked your query and you can set the column format based on the C# standard format to achieve your scenario. Please refer the below link to know about the C# date format standard. 


Get back to us if you have any other queries. 

Regards, 
Jeevakanth SP. 



KA Keith A Price September 11, 2021 05:33 PM UTC

Thanks. That worked.




VN Vignesh Natarajan Syncfusion Team September 13, 2021 03:31 AM UTC

Hi Keith,  

Thanks for the update.  

We are glad to hear that you have achieved your requirement using our solution. 

Please get back to us if you have further queries.  

Regards, 
Vignesh Natarajan  



Loader.
Up arrow icon