• Creator
    Topic
  • #4206
    gbridge
    Participant

      Hi,

      New here…

      Just wanted to find out if there is a way to put have the DateTime control default to the todays date instead of a static date.

      I’ve built a little billing template so when I run the template, I’d like for it default to today’s date and then give me the option to drill down into the calendar.

      Thanx,

    • Author
      Replies
    • #7485
      MA
      Participant

        If you want the date default to a static date then specify the date value:
        <DateTime prompt=”Leave start date” hint=”Enter the date” date=”11/1/2006″></DateTime>

        If you want the date default to today’s date then do not specify the date value:
        <DateTime prompt=”Leave start date” hint=”Enter the date”></DateTime>

        Hope this helps.
        MA

        #7483
        Support 1a
        Participant

          Thanks MA.

          Advansys Support

          #7482
          DINAPACE
          Participant

            I need to generate a ticket number, and was thinking of using the datetime function. Is there a way to insert or default to the current time?

            #7484
            Support 3
            Participant

              Use the Kind property and set the value to 2 for the time control. See the sample code below:

                
              Leave Start Date: <DateTime prompt="Leave start date"></DateTime>
              Leave Start Time: <DateTime prompt="Leave start time" kind="2"></DateTime>
              

              Regards,
              Advansys Support

            Viewing 4 replies - 1 through 4 (of 4 total)
            • You must be logged in to reply to this topic.