Skip to main content

Search

Add date&time to another list - problem

Comments

2 comments

  • Matthias Walter

    Hi Tadej Cajner,

    I can reproduce your first case where you copy a date field to a text field that it will be in the 12 hours format again.

    You can overcome this with the following function code expression:

    var options = { hour12: false };
    return [[DateTimeField]].toLocaleString([[@Page.UICultureName]], options);

     

    Unfortunately I cannot reproduce your second case where you copy a date/time field into another date/time field in another list. (tested with skybow Rich Forms 3.1.27.22)

     

    Can you please send me screenshots of your button action configuration?

     

    Kind regards

    Matthias

    0
  • Tadej Cajner

    Hello Matthias,

     

    I figure it out with a help from this thread:

    Copy Date with Format Assignment 

    so I put in Function code:

     

    return [[field name]].format ("dd.MM.yyyy HH:mm");

     

    the catch was in HH hour format (HH not hh).

     

    Best regards,

     

    Tadej

    0

Please sign in to leave a comment.