cancel
Showing results for 
Search instead for 
Did you mean: 

Format EditText as TIME

Former Member
0 Kudos

Hi to all,

I use a code such this:

lFrm.DataSources.UserDataSources.Add("DataI", SAPbouiCOM.BoDataType.dt_DATE)

to format the text in an EditText in Date format.

How I can format the text of an EditText in TIME format?

Luke

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

I'll try with a function that format time on EditText LostFocus, because I haven't a Db Field...

Thanks, Luke.

Nussi
Active Contributor
0 Kudos

Hi Luke,

EditText Time works only in UDO.

when you bind the field / column to the UDO field of type Time it will work and you have the ":" effect.

without UDO form you have to deal with a shortnumber and your own logic

lg David

Former Member
0 Kudos

Hi

You have Time datatype when bind data to dbdatasource of type DataTime/Time.


<databind databound="1" table="@USER_TABLE" alias="U_TIME" />

If you use userdatasource, try to use dt_SHORT_NUMBER.

Regards

Sierdna S.