Exemple #1
0
        public override void SetValue(string value)
        {
            base.SetValue(value);
            if (string.IsNullOrEmpty(value))
            {
                return;
            }

            _date = new DT();
            _date.SetValue(value.Substring(0, Math.Min(value.Length, 8)));
            if (value.Length > 8)
            {
                _time = new TM();
                _time.SetValue(value.Substring(8, value.Length - 8));
            }
        }
Exemple #2
0
 private void Initialize(DT date, TM time)
 {
     _date = date;
     _time = time;
     Value = _date.GetValue() + (_time != null ? _time.GetValue() : "");
 }
Exemple #3
0
 public DTM(DT dt, TM tm = null)
 {
     Initialize(dt, tm);
 }