Display format of Date

How to display date in dd/mmm/yyyy format of data type of string in asp.net mvc?

3 Replies 1 reply marked as answer

PM Ponmani Murugaiyan Syncfusion Team June 5, 2020 07:33 AM UTC

Hi Harsh,  

Greetings from Syncfusion Support. 

We have prepared sample for your reference with your provided format. Please find the code snippet and sample for reference. 

[Index.cshtml] 
 
@Html.EJS().DatePicker("element").Value(ViewBag.value).Format("dd/MMM/yyyy").Placeholder("Enter date").Render() 
 
Output

 




Regards,  
Ponmani M

Marked as answer

HS Harsh Shah July 3, 2020 03:35 AM UTC

Thank you Ponmani murugaiyan


PM Ponmani Murugaiyan Syncfusion Team July 3, 2020 04:18 AM UTC

Hi Harsh, 

Thanks for the update. Please get back us if you need further assistance. 

Regards, 
Ponmani M 


Loader.
Up arrow icon