Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Rohan 105 posts 162 karma points
    Sep 02, 2014 @ 12:36
    Rohan
    0

    how to format date in dd/MM/yyyy hh:mm:ss format with

    Hi

    If i use "Settings -> Template -> Insert Umbraco Page Field", now if i use "createDate" and set the format as date only then it will show something like below

    Saturday, August 30, 2014

    If i set the format as date and time then it will show something like below.

    Saturday, August 30, 20148:57 AM

    But i want to print the date in dd/MM/yyyy hh:mm:ss format (30/08/2014 08:57)

    Can you please let me know how to achieve this ?

    Thanks,

  • Jeavon Leopold 3008 posts 13221 karma points MVP 7x admin c-trib
    Sep 02, 2014 @ 14:44
    Jeavon Leopold
    0

    Hi Rohan,

    Something like this:

    @CurrentPage.myDateProperty.ToString("dd/MM/yyyy hh:mm:ss")
    

    Jeavon

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies