Skip to main content
Inspiring
October 13, 2013
Answered

formatdate

  • October 13, 2013
  • 1 reply
  • 1416 views

I have a cfinput date field on the form, I have value from my query like "#myquery.Mydate#", but it gives me {ts .....} format,

Are there an yway to set the date format using short date format?

Your help and information is great appreciated,

Regards,

Iccsi,

    This topic has been closed for replies.
    Correct answer REEDPOWELL

    Sounds like your <INPUT> tag is not within a <CFOUTPUT>.  You could also change the <INPUT> to a <CFINPUT> to get it to evaluate the CF expressions.

    1 reply

    Known Participant
    October 14, 2013
    iccsiAuthor
    Inspiring
    October 18, 2013

    <input type="date" name="MyDate" id="MyDate" value="#DateFormat(#MySp.MyDate#, "Short")#"/>

    I have above code, but the date field shows

    #DateFormat(#MySP.MyDate#), not the format date information return from my data source.

    Thanks again for helping,

    Regards,

    Iccsi,

    REEDPOWELLCorrect answer
    Inspiring
    October 18, 2013

    Sounds like your <INPUT> tag is not within a <CFOUTPUT>.  You could also change the <INPUT> to a <CFINPUT> to get it to evaluate the CF expressions.