Note: Forums will be making significant UX changes to address key usability improvements surrounding search, discoverability and navigation. To learn more about these changes please visit the announcement which can be found HERE.

已鎖定 How can I format date HTML Client

  • Monday, August 27, 2012 7:25 PM
     
     

    Hello Everyone !

    I'm trying to test VS 2012 LightSwitch HTML Client, and it works fine !

    I'm a beginner in javascript... so it's hard for first steps.

    Anyone can help me format date, please ?

     

    PS: I tried to configure property 'Format Pattern' on DataSource, but it isn't working !

    Thanks a lot !

    Teobaldo
    Brazil

All Replies

  • Monday, August 27, 2012 8:26 PM
     
     Proposed

    hi,

    with the vhd comes a tutorial where you can read how to format date with moment.js.

    moment.js can be downloaded as a Nudget package. In the tutorial you get help with this, step by step.

    If you get stuck I will help you.

    Good luck

    Sven


    SE1969

  • Monday, August 27, 2012 10:30 PM
     
     Answered

    Thanks for answer !

    I found the example on tutorial and built the method render for custom control.

    Thanks !

    Teobaldo


    • Edited by Teobaldo Monday, August 27, 2012 10:34 PM
    • Marked As Answer by Teobaldo Tuesday, August 28, 2012 10:09 PM
    •