Page 1 of 1

Show Only Time in Date Time Field VLFONE

Posted: Fri Jan 22, 2021 6:18 am
by dhunt
How do I just show the time only on a date time field and only show the time up and down arrows?

Code: Select all

Define_Com Class(#PRIM_DTIM) Name(#EnteredRange_Time1) Componentversion(1) Displayposition(24) Left(536) Tabposition(24) Top(136) Mindate('1970-01-01 00:00:00.000000000') Width(217) Parent(#COM_OWNER) Themedrawstyle('NoBorders') Checked(False) Showtimebutton(True)
Untitled8.png
Untitled8.png (1.04 KiB) Viewed 32545 times

Re: Show Only Time in Date Time Field VLFONE

Posted: Fri Jan 22, 2021 12:32 pm
by Dino
I would use the control for Time #PRIM_MD.DateTime ... that other its kind of old and I dont think it supports the use of those arrows for the time, just for the date.

Code: Select all

Define_Com Class(#PRIM_MD.DateTime) Name(#Date) Caption('Time') Displayposition(2) Icon('date_range') Iconopacity(50) Left(113) Parent(#COM_OWNER) Showdate(False) Showtime(True) Tabposition(2) Top(97) Width(290)
prim_md_datetime.jpg
prim_md_datetime.jpg (19.47 KiB) Viewed 32533 times

Re: Show Only Time in Date Time Field VLFONE

Posted: Fri Jan 22, 2021 7:40 pm
by kno_dk
Hi

I have just tried this and it works perfect.

But I have tried to change it so the format are 24 hour time format, but it does not work. I have added these: Customdateformat('H') Dateformat(Custom) to the define_com.

Any suggestion;

/Klaus