jj
This commit is contained in:
@@ -307,13 +307,15 @@ Public Class ClassWindreamDocGrid
|
|||||||
|
|
||||||
AddHandler dateedit.EditValueChanged, _datepickerValueChangedHandler
|
AddHandler dateedit.EditValueChanged, _datepickerValueChangedHandler
|
||||||
' Brauchen wir Zeitangaben in den Custom Fields?
|
' Brauchen wir Zeitangaben in den Custom Fields?
|
||||||
'AddHandler dateedit.CustomDisplayText, Sub(sender As Object, _e As DevExpress.XtraEditors.Controls.CustomDisplayTextEventArgs)
|
AddHandler dateedit.CustomDisplayText, Sub(sender As Object, _e As DevExpress.XtraEditors.Controls.CustomDisplayTextEventArgs)
|
||||||
' Dim value As String = _e.Value
|
Dim parsedDate As DateTime
|
||||||
' _e.DisplayText = value
|
|
||||||
' Dim parsedDate As DateTime = DateTime.ParseExact(value, "yyyy-MM-dd", System.Globalization.DateTimeFormatInfo.InvariantInfo)
|
|
||||||
|
|
||||||
' _e.DisplayText = parsedDate.ToString(CURRENT_DATE_FORMAT & " HH:MM:ss")
|
If Not DateTime.TryParse(_e.Value, parsedDate) Then
|
||||||
' End Sub
|
parsedDate = DateTime.ParseExact(_e.Value, CURRENT_DATE_FORMAT & " HH:MM:ss", System.Globalization.DateTimeFormatInfo.InvariantInfo)
|
||||||
|
End If
|
||||||
|
|
||||||
|
_e.DisplayText = parsedDate.ToString(CURRENT_DATE_FORMAT & " HH:MM:ss")
|
||||||
|
End Sub
|
||||||
|
|
||||||
e.RepositoryItem = dateedit
|
e.RepositoryItem = dateedit
|
||||||
End If
|
End If
|
||||||
|
|||||||
Reference in New Issue
Block a user