• Resolved rlwnocable

    (@rlwnocable)


    hello,

    Can i get the weekday of a datepicker field in a repeater?
    I want to make a field, that shows the weekday of a selected date in a repeater.
    I need it to test if the entered working time is in a weekend.

    best regards
    robert

    The page I need help with: [log in to see the link]

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author EDGARROJAS

    (@edgarrojas)

    Sure, that can be done with a formula, do you want to show the day in text( like sunday, monay, etc) or in number (like 0=sunday, 1=monday) etc.

    Thread Starter rlwnocable

    (@rlwnocable)

    HEllo,
    I have a field already for the weekeday and want to show it as text ??
    best regards
    Robert

    Plugin Author EDGARROJAS

    (@edgarrojas)

    Got it, just to be clear you will display this name of the week in a field that is going to be inside the repeater right? I am asking because the formula would be a little different depending if the information is going to be displayed inside or outside the repeater.

    Thread Starter rlwnocable

    (@rlwnocable)

    Hello ,
    Yes the weekday field is in the repeater it selv ??

    Br
    Robert

    Plugin Author EDGARROJAS

    (@edgarrojas)

    Ok try with a formula like this:

    
    if($$field_rnField6$$.GetField(current,'moededato').numericalValue==0)
      return '';
    
    switch( new Date($$field_rnField6$$.GetField(current,'moededato').numericalValue).getDay())
    {
      case 0:
        return 'Sunday';
        case 1:
        return 'Monday';
        case 2:
        return 'Tuesday';
        case 3:
        return 'Wednesday';
        case 4:
        return 'Thursday';
        case 5:
        return 'Friday';
        case 6:
        return 'Saturday';
    }
    

    please replace moededato with the id of the datepicker field.

    Regards!

    Thread Starter rlwnocable

    (@rlwnocable)

    THANX !!!!
    It works ??

    I love your support!

    Br
    Robert

    How is the formula to show the day name in a text field?

    Thanks!

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘can i get the weekday of a date field in a repeater ?’ is closed to new replies.