How can I see the selected day of the week from a date field?

  • StrawberryDesi
    Asked on May 13, 2015 at 3:37 PM

    How can I make the Day-of-the-Week show on my Email Notification.  I currently use the  {DATE:Full-US}  formula but it displays the date and the time.  I'd like for the day of the week to show i.e.:  "Thursday, May 14, 2015", or if you could just show me how to make the day of the week, by itself, to show I'd be happy.  i.e.: "Monday" or "Saturday".

    Can you please help me with this?

     

    Thank you.

     

    Henry

  • raul
    Replied on May 13, 2015 at 4:27 PM

    Unfortunately, as far as I know it's currently not possible to retrieve the selected weekday from a date picker.

    However, you could accomplish this using the full source code of your form and a custom script. You can see an example on how to do this on this thread: http://www.jotform.com/answers/559325#559557

    Please check it out and let us know if it helps.

  • StrawberryDesi
    Replied on May 13, 2015 at 4:36 PM

    I have absolutely no idea what you mean. I went to the thread that you indicated. But, the thread is unclear and VERY VERY confusing.  Can you tell me what I need to do to make this happen, please?

     

    Thank you.

     

    Henry

  • raul
    Replied on May 13, 2015 at 4:47 PM

    My apologies for confusing you with my previous response.

    What I meant to say is that you can do this by using the full source code of your form and a custom script. On the link I provided there's an example of a way to accomplish this using this JQuery library: https://jqueryui.com/datepicker/. So, if your form is embedded on a website you can use the mentioned library to include the day of the week in the email notification. If not, then unfortunately there's no way to do this right now.

    You can let us know the URL where the form is embedded (in case you do have a website) so we can inspect it and provide an example on how to do this using your form's source code.

  • wsfarm
    Replied on May 14, 2015 at 12:20 AM

    This may help, as I had a similar problem.

    Using a condition it is possible to retrieve the day (in three letter form) from the Date Picker and format it as you wanted:

    How can I see the selected day of the week from a date field? Image 1 Screenshot 30

    The Date Picker is the standard date picker. If you want the current date to appear automatically that can be set in it's properties. If you want just the current date and for it not to be changed it can be hidden.

    The other field is a standard Text Field, with its Mask set to ***, *** **, ****

    The condition is:

    How can I see the selected day of the week from a date field? Image 2 Screenshot 41

    That's it. You can put the Day and Date field into your email notification.

    If you absolutely needed the days spelled in full that may be possible with a bit of fiddling.

    Cheers

    charlie (wsfarm)

     

  • jonathan
    Replied on May 14, 2015 at 1:14 AM

    This template does show the Day of the Week of selected Date

    http://www.jotform.com/form-templates/show-day-of-the-week

    How can I see the selected day of the week from a date field? Image 1 Screenshot 20

     

    Hope this help also.

    Thanks.

     

  • wsfarm
    Replied on May 14, 2015 at 3:59 AM

    And, yes we can also do Thursday, 14th May, 2015:

    How can I see the selected day of the week from a date field? Image 1 Screenshot 40

    Conditions on the mask for Long Day & Date:

    How can I see the selected day of the week from a date field? Image 2 Screenshot 51

    The template is in the Calculations section: http://www.jotform.com/form-templates/date-including-day-of-week

    Of course it many be that the Mini Date Picker Widget will do the job directly:

    How can I see the selected day of the week from a date field? Image 3 Screenshot 62

    Put mini into the Widget search box.

     

    Regards

    Charlie (wsfarm)