0
sukhdeep.dhillon created
- ABP Framework version: v7.2.2
- UI Type: Angular
- Database System: EF Core (SQL Server)
Hi,
in ABP, is there any specific way to implement the following:
- How to convert application wide datetime from UTC to EST
- Format datetime for all API responses
4 Answer(s)
-
0
-
0
Format datetime for all API responses
can you elaborate
-
0
thanks you for your response if return Dto has property of type DateTime then it should follow some kind of format like yyyy-MM-dd like that
how can I set any kind of specific format for all DateTime type
-
0
You can configure the
AbpJsonOptions
https://docs.abp.io/en/abp/latest/JSON#abpjsonoptions
services.Configure<AbpJsonOptions>(options => { options.OutputDateTimeFormat = "yyyy-MM-dd"; });