Hi @RAVI,
date eval <%#Eval("Date", "{0:dd/MMM/yyyy}")%>
If you want the date to be displayed in a format like "18-Feb-25", you need to set the format to dd-MMM-yy
.
- dd : The day of the month, from 01 to 31.
- MMM : The abbreviated name of the month.
- yy : The year, from 00 to 99.
In data bind, it should look like:
<%# Eval("Date", "{0:dd-MMM-yy}") %>
For more details about the date and time format, please refer to this doc: https://learn.microsoft.com/en-us/dotnet/standard/base-types/custom-date-and-time-format-strings
Best regards,
Xudong Peng
If the answer is the right solution, please click "Accept Answer" and kindly upvote. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.