Modules.Interface: Datumsformat immer 8-stellig (yyyyMMdd) aufbereiten
This commit is contained in:
parent
623807c55d
commit
262805d112
@ -332,10 +332,10 @@ Public Class PropertyValues
|
|||||||
s = Convert.ToString(Obj)
|
s = Convert.ToString(Obj)
|
||||||
|
|
||||||
If IsDate(s) Then
|
If IsDate(s) Then
|
||||||
' Hier wird das DEFAULT-Format auf yyyy-MM-dd gesetzt
|
' Hier wird das DEFAULT-Format auf yyyyMMdd gesetzt
|
||||||
Dim dtfi As DateTimeFormatInfo = CultureInfo.CreateSpecificCulture(CultureInfo.InvariantCulture.Name).DateTimeFormat
|
Dim dtfi As DateTimeFormatInfo = CultureInfo.CreateSpecificCulture(CultureInfo.InvariantCulture.Name).DateTimeFormat
|
||||||
dtfi.DateSeparator = "-"
|
dtfi.DateSeparator = ""
|
||||||
dtfi.ShortDatePattern = "yyyy/MM/dd"
|
dtfi.ShortDatePattern = "yyyyMMdd"
|
||||||
|
|
||||||
d = CDate(s)
|
d = CDate(s)
|
||||||
oResult = d.ToString("d", dtfi)
|
oResult = d.ToString("d", dtfi)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user