using System; namespace ln.type { public class Date { int year, month, day; public Date() { DateTime now = DateTime.Now; this.year = now.Year; this.month = now.Month; this.day = now.Day; } public Date(int year,int month,int day) { this.year = year; this.month = month; this.day = day; } public static implicit operator DateTime(Date date) => new DateTime(date.year,date.month,date.day); public static implicit operator Date(DateTime dateTime) => new Date(); } }