Show Only Time in Date Time Field VLFONE

This Q&A forum allows users to post and respond to "How Do I Do ....." questions. Please do not use to report (suspected) errors - you must use your regional help desk for this. The information contained in this forum has not been validated by LANSA and, as such, LANSA cannot guarantee the accuracy of the information.
Post Reply
dhunt
Posts: 65
Joined: Fri Feb 08, 2019 3:06 am

Show Only Time in Date Time Field VLFONE

Post 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 32543 times
User avatar
Dino
Posts: 472
Joined: Fri Jul 19, 2019 7:49 am
Location: Robbinsville, NC
Contact:

Re: Show Only Time in Date Time Field VLFONE

Post 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 32531 times
kno_dk
Posts: 219
Joined: Tue Feb 23, 2016 12:00 am

Re: Show Only Time in Date Time Field VLFONE

Post 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
Post Reply