NetTalk Central

Author Topic: Show Clarion time as 'Time'  (Read 4910 times)

Edvard Korsbaek

  • Newbie
  • *
  • Posts: 19
    • View Profile
    • Email
Show Clarion time as 'Time'
« on: November 03, 2016, 01:26:54 AM »
Hi!

Have a coule of datetime, where I want to show the date as date (no problem, uses the 'Over' component from the dct) and the time as time (i.e. 8:00 instead of 2880001) in both webform and webbrowse.
I just have not figured out how to, and found nothing in doc's too.

How to?

Best regards

Edvard Korsbæk

Vinnie

  • Full Member
  • ***
  • Posts: 183
    • View Profile
    • Email
Re: Show Clarion time as 'Time'
« Reply #1 on: November 03, 2016, 05:54:15 AM »
Need to use a picture

Date '@d5' for the UK date type
Time '@t4' for the Hour:Minute:seconds

put the picture on the field in the browse

Edvard Korsbaek

  • Newbie
  • *
  • Posts: 19
    • View Profile
    • Email
Re: Show Clarion time as 'Time'
« Reply #2 on: November 03, 2016, 12:39:56 PM »
the browse has a field for it.
but the form - at least I cannot find it.

best regards

Edvard

Vinnie

  • Full Member
  • ***
  • Posts: 183
    • View Profile
    • Email
Re: Show Clarion time as 'Time'
« Reply #3 on: November 04, 2016, 12:02:34 AM »
Using a Form

Second Tab (STRING)
Half way down the page

PICTURE

Edvard Korsbaek

  • Newbie
  • *
  • Posts: 19
    • View Profile
    • Email
Re: Show Clarion time as 'Time'
« Reply #4 on: November 10, 2016, 12:34:40 PM »
Thanks!

A bit strange, that a time based upon a Clarion time is a 'STRING' - I used number, and looked for the picture there.

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Show Clarion time as 'Time'
« Reply #5 on: November 13, 2016, 10:12:51 PM »
>> I used number, and looked for the picture there.

"Number" is an HTML type, which cannot be formatted (formatting is done by the browser) so it has no Picture field.

"String" maps to a HTML "entry" field - which is what you use to enter Times.
But yeah, it wouldn't hurt to add a "Time" type, as a pure synonym for "String" to make it more intuitive.
I'll do that at some point.

cheers
Bruce