Forums

Forums / Developing Portals / Note Widget and Date

Note Widget and Date

3 posts, 1 answered
  1. Mason Ambery
    Mason Ambery avatar
    67 posts
    Registered:
    19 Nov 2021
    09 Feb 2023
    Link to this post
    I added createdon and cretedby to the Additional Fields Note model and modified the template to display the two fields.  The createdby field displays correctly but the createdon field displays does not.

    This is what displays above the Note Title row.
        Mason Ambery /Date(1675959095000)/

    How do I correct this or apply the proper format to display the Created On date of the note?
  2. Mason Ambery
    Mason Ambery avatar
    67 posts
    Registered:
    19 Nov 2021
    Answered
    14 Feb 2023
    Link to this post
    I got this to work by using this.
    <span>Created On: </span>#= kendo.toString(kendo.parseDate(createdon, 'dddd, MMMM dd, yyyy h:mm tt'), 'dddd, MMMM dd, yyyy h:mm tt') #
  3. Tom Pawelec
    Tom Pawelec avatar
    25 posts
    Registered:
    21 Oct 2022
    15 Feb 2023 in reply to Mason Ambery
    Link to this post
    Hi Mason,

    Yes it looks like the date was not correctly formatted and was displaying in a time format. 

    Regards,
    Tom
3 posts, 1 answered