Skip to main content
Known Participant
May 20, 2009
Answered

UK date

  • May 20, 2009
  • 1 reply
  • 415 views

Hi,

I am using coldfusion 8 and a jquery date input box. I need the date to show the UK format of date so not to confuse the users (dd/mm/yy) so when the form gets posted it will be in this format. How can I convert this to a  US date (mm/dd/yy) is there a built in function to to this?

I used to do this in PHP with string manipulation(I have seen the ligh). If this is they way I have to do it then so  be it, however I am fairly new to coldfusion so some pointers would be good.

Thanks.

    This topic has been closed for replies.
    Correct answer tooMuchTrouble

    ]]>

    setLocale("en_GB");

    t="13/1/2009"; //GB style day/month/year

    writeoutput("#lsParseDateTime(t)#");

    </cfscript

    1 reply

    tooMuchTroubleCorrect answer
    Inspiring
    May 20, 2009

    ]]>

    setLocale("en_GB");

    t="13/1/2009"; //GB style day/month/year

    writeoutput("#lsParseDateTime(t)#");

    </cfscript