locked
How can I format date HTML Client

    Question

  • 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

    Monday, August 27, 2012 7:25 PM

Answers

  • 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
    Monday, August 27, 2012 10:30 PM

All replies

  • 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 8:26 PM
  • 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
    Monday, August 27, 2012 10:30 PM