Dates

  • Creator
    Topic
  • #52400
    Tim Pashon
    Participant

      I’m trying to use the system variables to get the current date in an xlate.  I would like the format to be, 2011-04-12.  I use @date and @now and I always get the month to be APR instead of 04.

      Isn’t there a way to get the month as a number instead of alpha characters?

      Thanks

    Viewing 0 reply threads
    • Author
      Replies
      • #74061
        Charlie LaBaw
        Participant

          Here is how I have been able to work with the date. This is a Pre-proc in a copy statement.

          set date [clock format [clock scan today] -format %Y-%m-%d]

          set xlateOutVals [lindex

            0]
      Viewing 0 reply threads
      • The forum ‘Cloverleaf’ is closed to new topics and replies.