Base solution for your next web application
Open Closed

Date format for en-IN #4059


User avatar
0
pankajmathur created

We are using the date picker control using <input type="text" class="form-control date-range-picker" /> The issue is that when the culture is set to en-IN then the format of the date should automatically change to dd/MM/yyyy whereas it still shows MM/dd/YYYY. How can we change the default behavior of this.


1 Answer(s)
  • User Avatar
    0
    alirizaadiyahsi created

    Hi @pankajmathu,

    There is a method that named createDateRangePickerOptions to set default options in this file: >*.Web.Mvc\wwwroot\Common_Bundles\common-scripts.js

    There is an example usage in this file: >*.Web.Mvc\wwwroot\view-resources\Areas\AppAreaName\Views_Bundles\tenant-index-libs.js