Results 1 to 3 of 3
  1. #1
    Join Date
    Aug 2003
    Posts
    26

    Unanswered: copy date into text_item

    I'd like to copy the date/contents of a text_item (typ: Date ,length 19, format mask: dd.mm.yyyy HH24:MI )
    into another text_item ( typ: Date ,length 19, format mask: dd.mm.yyyy HH24:MI )

    Used a WHEN-BUTTON-PRESSED Trigger with:

    :MY_BLOCK.MY_NEW_TIMEFIELD := TO_DATE(:REF_BLOCK.REF_TIME,'dd.mm.yyyy HH24:MI' );

    But the hours and minutes are always 00:00

    I'd like to have the real hour and minute values in the :MY_BLOCK.MY_NEW_TIMEFIELD

  2. #2
    Join Date
    Jun 2004
    Location
    Liverpool, NY USA
    Posts
    2,509
    If you define a block item as date, it will only contain the date and no time information. Use datetime instead.
    Bill
    You do not need a parachute to skydive. You only need a parachute to skydive twice.

  3. #3
    Join Date
    Aug 2003
    Posts
    26
    Thanks beilstwh

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •