We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

FileExplorer change date format

Thread ID:





127744 Dec 6,2016 06:08 AM Dec 8,2016 08:25 AM ASP.NET MVC 1
Tags: FileExplorer
Polly Fahey
Asked On December 6, 2016 06:08 AM


Is it possible to change the format of dates to 'DD/MM/YYYY' in the file explorer?

Thank you

Balamurugan P [Syncfusion]
Replied On December 8, 2016 08:25 AM

Hi Polly, 

Thanks for using Syncfusion Products.  

Yes, it is possible to customize the format of dates 'DD/MM/YYYY' in the ileExplorer control. Usually these date details will be received from file handling service, so you can customize these date formats in the response of the file handling functionalities of FileExplorer.  
You can pass the file handling operations response to the following “ConvertDateFormat” function, customize it as per your requirement and finally  return the customized AJAX response.  
        ConvertDateFormat(operation.Read(args.Path, args.ExtensionsAllow)); 
        public virtual FileExplorerResponse ConvertDateFormat(object response, bool getDetails= false) 
            FileExplorerResponse ReadResponse = (FileExplorerResponse) response; 
            if (getDetails) 
                var listResponse = ReadResponse.details.ToList(); 
                for (int i = 0; i < listResponse.Count; i++) 
                    DateTime created = Convert.ToDateTime(listResponse[i].Created); 
                    listResponse[i].Created = created.ToString("dd/MM/yyyy"); 
                    DateTime modified = Convert.ToDateTime(listResponse[i].Modified); 
                    listResponse[i].Modified = modified.ToString("dd/MM/yyyy"); 
                ReadResponse.details = listResponse; 
                var listResponse = ReadResponse.files.ToList(); 
                for (int i = 0; i < listResponse.Count; i++) 
                    DateTime dt = Convert.ToDateTime(listResponse[i].dateModified); 
                    listResponse[i].dateModified = dt.ToString("dd/MM/yyyy"); 
                ReadResponse.files = listResponse; 
            return ReadResponse; 

We have prepared a sample based on this and you can find the sample under the following location:  

Please let us know if you require any further assistance. 
Balamurugan P 


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.