GeometryGym.Ifc.IfcDate.convert C# (CSharp) Méthode

convert() static private méthode

static private convert ( System.DateTime date ) : string
date System.DateTime
Résultat string
		internal static string convert(DateTime date) { return "'" + date.Year + (date.Month < 10 ? "-0" : "-") + date.Month + (date.Day < 10 ? "-0" : "-") + date.Day + "'"; }
		internal static DateTime convert(string date) { return new DateTime(int.Parse(date.Substring(0, 4)), int.Parse(date.Substring(5, 2)), int.Parse(date.Substring(8, 2))); }

Same methods

IfcDate::convert ( string date ) : System.DateTime