- Jun 6, 2020
- 11,593
- 4,507
Hello!
I habe two columns in the B4XTable, one for the date data and the second for the time data. Wenn I set DateTime.DateFormat="dd.MM.yyyy" and try to load the table then I get in both columns date values. If I set DateTime.DateFormat="HH:mm" then I get in both columns time values. How can I get date AND time values?
Thank you for your help!
Mario
Here my code:
Sub Activity_Create(FirstTime As Boolean)
'Do not forget to load the layout file created with the visual designer. For example:
Activity.LoadLayout("tabelle")
Activity.Title="Protocolo"
Try
DateTime.DateFormat="dd.MM.yyyy"
Dim DateColumn As B4XTableColumn = B4XTable1.AddColumn("Data", B4XTable1.COLUMN_TYPE_DATE)
DateColumn.Width = 90dip
Dim TimeColumn As B4XTableColumn = B4XTable1.AddColumn("Tiempo", B4XTable1.COLUMN_TYPE_DATE)
TimeColumn.Width = 90dip
FillTable
Catch LastException
MsgboxAsync ( LastException.Message,"error" )
End Try
end sub
Sub FillTable
Try
DateTime.DateFormat="dd.MM.yyyy"
Dim Data As List
Dim...
I habe two columns in the B4XTable, one for the date data and the second for the time data. Wenn I set DateTime.DateFormat="dd.MM.yyyy" and try to load the table then I get in both columns date values. If I set DateTime.DateFormat="HH:mm" then I get in both columns time values. How can I get date AND time values?
Thank you for your help!
Mario
Here my code:
Sub Activity_Create(FirstTime As Boolean)
'Do not forget to load the layout file created with the visual designer. For example:
Activity.LoadLayout("tabelle")
Activity.Title="Protocolo"
Try
DateTime.DateFormat="dd.MM.yyyy"
Dim DateColumn As B4XTableColumn = B4XTable1.AddColumn("Data", B4XTable1.COLUMN_TYPE_DATE)
DateColumn.Width = 90dip
Dim TimeColumn As B4XTableColumn = B4XTable1.AddColumn("Tiempo", B4XTable1.COLUMN_TYPE_DATE)
TimeColumn.Width = 90dip
FillTable
Catch LastException
MsgboxAsync ( LastException.Message,"error" )
End Try
end sub
Sub FillTable
Try
DateTime.DateFormat="dd.MM.yyyy"
Dim Data As List
Dim...
برای دیدن لینک ها باید ثبت نام کنید
برای دیدن لینک ها باید ثبت نام کنید