FarStudio.Utility.Parser
1.0.1
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package FarStudio.Utility.Parser --version 1.0.1
NuGet\Install-Package FarStudio.Utility.Parser -Version 1.0.1
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="FarStudio.Utility.Parser" Version="1.0.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add FarStudio.Utility.Parser --version 1.0.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: FarStudio.Utility.Parser, 1.0.1"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install FarStudio.Utility.Parser as a Cake Addin #addin nuget:?package=FarStudio.Utility.Parser&version=1.0.1 // Install FarStudio.Utility.Parser as a Cake Tool #tool nuget:?package=FarStudio.Utility.Parser&version=1.0.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
FarStudio
AUTHOR : FARID PERMANA
Datetime Converter
Formating for property of DTO (data transfer object) Class.
Requirement :
- Newtonsoft.Json 12.0.0
Example class :
using FarDatetimeConverter.Converter;
using Newtonsoft.Json;
namespace Core.Manager
{
public class ExampleDTO
{
public ExampleDTO()
{
}
[JsonProperty("exampleId")]
public long CustomerId { get; set; }
[JsonProperty("code")]
public string Code { get; set; }
[JsonConverter(typeof(FDateTimeConverter), "dd MMM yyyy HH:mm")]
[JsonProperty("createdDate")]
public System.DateTime CreatedDate { get; set; }
}
}
EXPLAIN
[JsonConverter()] : this base for us include our converter.
typeof(FDateTimeConverter) : add our converter.
"dd MMM yyyy HH:mm" : this is one of example our custom format date, you can add another format whatever you want.
if you don't take any custome format like [JsonConverter(typeof(FDateTimeConverter)] as default we make format yyyyMMdd.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET Framework | net45 is compatible. net451 was computed. net452 was computed. net46 was computed. net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
- Newtonsoft.Json (>= 12.0.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Bug fixes and performance improvements