Custom date program with date-time picker (OpenInsight 64-bit)
At 16 JAN 2020 11:01:08AM Brad Haughn wrote:
I was looking at the Date-Time picker control in OI10 and saw you could do a custom format. It looks as though the custom format uses the standard date formats available in OI such as D4/,D.E, etc.
I already had a program written to do date formatting in our system which allows the users to select their date format ahead of time, and then use it everywhere. It doesn't appear that I can use this custom date format program though with the control. Is there a way I can use my [DATE_OUTPUT] program with this new control similar to other controls?
At 16 JAN 2020 11:26AM Carl Pates wrote:
Hi Brad,
Unfortunately the short answer is no.
The long answer is that Rev custom formats like your DATE_OUTPUT Basic+ program are handled in the engine - the CustomFormat property of the control is handled by the control itself so they are two very different things. When you set the CustomFormat property we actually look to see if it looks like a standard Rev "D,T or DT" format and if so we translate it to something that the control understands - we can't do that with a format that is the name of a Basic+ proc.
However, depending on your needs, you may be able to build a CustomFormat value that matches your DATE_OUTPUT proc - the formatting used by the control is described here:
Regards