Though I’ve wrote this function for Angular – ag-grid, this can be used as an independent method as well. Code:
-
-
While you will find multiple solutions for formatting a date in ag-grid on internet/stackoverflow and documentation, here is one method I found handy: { field: ‘DateUpdated’, valueFormatter: params => formatDate(params.value, ‘MMM, dd yyyy’, ‘en-US’) }
-
Read in detail here – https://learn.microsoft.com/en-us/aspnet/core/security/cors?view=aspnetcore-7.0 Disclaimer: this is an unethical practice so this is recommended only for development/debugging purpose
-
Ok, last week I was on an Angular+.NET Core learning spree, and I had to continue since my goals were not met. Monday – Angular foundation Tuesday – Angular foundation cont. – services, .NET Core Web API setup, EF Core Wednesday – continue same… had issues to debug Thursday – replaced bootstrap with ng-bootstrap, for no reason Friday – continues ng-bootstrap wars, and unhappy. Decides to learn Angular Material after reading UI library comparisons Saturday, Today – continues with Angular Material