Skip to main content

How to work with Date format in SQL: Set command

Comments

5 comments

  • Yaremi Miranda Lopez

    HANA:

    @STORE1 = SQL(SELECT TO_VARCHAR(T0."DocDueDate", 'yyyy-mm-dd') FROM "ORDR" T0 WHERE T0."DocNum" = 972);
    SET($[$12.0.DATE]|@STORE1);

    0
  • Lauren Downs

    Hi,

    I need the below to say IF ($[$BOYX_5.0.0]  > yesterday:

    What is the correct logic please?

    0
  • Dustin Bellew

    IF ($[$BOYX_5.0.0]  > getdate() -1

    -1
  • Anthony Mendoza

    Hello,

    This does not work when attempting to set a date field on a UDT that is handled through the UDT Handler. Image below. Am I missing something here?

    0
  • Chris F

    I have a macro to set the date on one window but another window only accepts the date in the mm/DD/YYYY format, how can I ask for one variable and it correctly sets it for both?

    Ex Var 1 = 02/02/25

    set item 1 = 02/02/25

    set item 2 = 02/02/2025

    0

Please sign in to leave a comment.