Sage 100

 View Only
  • 1.  Todays Date on VI Export formatted

    Posted 02-02-2024 10:16

    I asked this on Sage City but thought I'd try here as well.

    On a VI export looking to add a temp field with the current date in YYYYMMDD format and can't figure it out. Looking for any suggestions. Thank you.



    ------------------------------
    Dana Halpin
    Vrakas/Blum Computer Consulting, Inc.
    ------------------------------


  • 2.  RE: Todays Date on VI Export formatted

    Posted 02-02-2024 11:24

    Create a temp variable of string data type then use the following calculation  dte(jul(0,0,0)-1:"YYYYMMDD")



    ------------------------------
    Doug Higgs
    Midwest Commerce Solutions, Inc
    (312) 315-0960
    Chauffeur, Chef, and Personal Assistant to Sprinkles
    ------------------------------



  • 3.  RE: Todays Date on VI Export formatted

    Posted 02-02-2024 11:26

    in case this helps at all:  oper = calc: day [Legacy = SYS(date)]



    ------------------------------
    Brett Zimmerman
    Net at Work
    Greater Boston Area
    ------------------------------



  • 4.  RE: Todays Date on VI Export formatted

    Posted 02-02-2024 11:28

    My previous post is a function for yesterday's date.  Here's today's date  dte(jul(0,0,0):"YYYYMMDD")



    ------------------------------
    Doug Higgs
    Midwest Commerce Solutions, Inc
    (312) 315-0960
    Chauffeur, Chef, and Personal Assistant to Sprinkles
    ------------------------------



  • 5.  RE: Todays Date on VI Export formatted

    Posted 02-02-2024 15:57

    Thank you for all the great quick replies. This one ended up working super. Appreciate it.

    VI Export


    ------------------------------
    Dana Halpin
    Vrakas/Blum Computer Consulting, Inc.
    ------------------------------



  • 6.  RE: Todays Date on VI Export formatted

    Posted 02-02-2024 11:41

    Here's another way  DTE(JUL(DAY):"%Y%Mz%Dz")



    ------------------------------
    Doug Higgs
    Midwest Commerce Solutions, Inc
    (312) 315-0960
    Chauffeur, Chef, and Personal Assistant to Sprinkles
    ------------------------------



  • 7.  RE: Todays Date on VI Export formatted

    Posted 02-02-2024 12:19

    I haven't tested @Brett Zimmerman's solution although I noticed that his has Operation = Calculated.  In the solutions I provided the operation should be Assign.



    ------------------------------
    Doug Higgs
    Midwest Commerce Solutions, Inc
    (312) 315-0960
    Chauffeur, Chef, and Personal Assistant to Sprinkles
    ------------------------------