Copied to clipboard

Flag this post as spam?

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


  • Dylan Pinn 1 post 71 karma points
    Aug 15, 2016 @ 05:56
    Dylan Pinn
    0

    Remove Time from Datepicker date in email

    Hi,

    I have a form that contains a Datepicker and in the email that is sent on submission the date is formatted with a time.

    How do I remove the time from the date?

    Thanks

  • Søren Mastrup 118 posts 545 karma points c-trib
    Aug 15, 2016 @ 06:40
    Søren Mastrup
    0

    Hi Dylan!

    You could do like this:

    dateTimePickerValue.ToString("dd. MMMM yyyy")
    

    Have a look over at Microsoft for more examples: https://msdn.microsoft.com/en-us/library/8kb3ddd4(v=vs.110).aspx

    I think you would have to create a custom workflow to alter the data that is sent from Umbraco forms. This post should help you with that: https://our.umbraco.org/forum/umbraco-pro/contour/61278-Umbraco-Forms-Adding-a-Custom-Workflow#comment-232078

  • 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