update vor Syncfusion-Aktualisierung
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Net.Http.Headers;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
@@ -22,5 +23,34 @@ namespace OnDoc.Helper
|
||||
|
||||
// return image;
|
||||
//}
|
||||
|
||||
public enum DateTimeFormat{
|
||||
datumshort,
|
||||
datummedium,
|
||||
datumlong,
|
||||
|
||||
}
|
||||
public static string Datum(DateTime date, DateTimeFormat format) {
|
||||
switch (format)
|
||||
{
|
||||
case DateTimeFormat.datumshort:
|
||||
return date.ToShortDateString();
|
||||
break;
|
||||
case DateTimeFormat.datummedium:
|
||||
return date.ToString("dd.MMMM yyyy");
|
||||
break;
|
||||
case DateTimeFormat.datumlong:
|
||||
return date.ToLongDateString();
|
||||
break;
|
||||
default:
|
||||
return date.ToShortDateString();
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
return date.ToString("dd.mm.yyyy");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user