Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
ObservableDateField.cs
1using System;
2using System.Globalization;
4
6{
11 {
12 public override string? StringValue
13 {
14 get => this.DateValue?.ToString("yyyy-MM-dd", CultureInfo.InvariantCulture);
15 set
16 {
17 if (string.IsNullOrWhiteSpace(value))
18 {
19 this.DateValue = null;
20 }
21 else if (DateTime.TryParse(value, CultureInfo.InvariantCulture, DateTimeStyles.None, out DateTime Dt))
22 {
23 this.DateValue = Dt;
24 }
25 }
26 }
27
28 public DateTime? DateValue
29 {
30 get => this.RawValue as DateTime?;
31 set => this.RawValue = value;
32 }
33 }
34}
The base KYC field model. Use as-is for generic fields, or subclass for custom logic.