Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

Date format not set at binding #3527


User avatar
0
velu created

Hi..

below code is written for the returns date in dd/MM/yyyy

$scope.Date = { date: new Date(), filtered: $filter('date')(new Date(), "dd/MM/yyyy") };

but when rendering on view control its shows in MM/dd/yyyy format.


1 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi velu,

    I assume you are using angular1 version. If so, you can use this filter <a class="postlink" href="https://github.com/aspnetzero/aspnet-zero/blob/dev/src/MyCompanyName.AbpZeroTemplate.Web/App/common/filters/momentjs-filters.js">https://github.com/aspnetzero/aspnet-ze ... filters.js</a>.

    It accepts date format.

    Thanks.