Display actual name of weekday rather than number of day

johnsogjjohnsogj Member Posts: 103
Hello, I've found documentation on how to find the day of the week. However, I cant seem to find out how to display the actual NAME of the weekday rather than the number. For example, all documentation shows how to display "1" instead of "Monday". I've specifically looked at DATE2DWY.

Thanks

Comments

  • SavatageSavatage Member Posts: 7,142
    WeekDay is type TEXT
    WeekDay := FORMAT(WORKDATE,0,'<Weekday Text>');
    

    This code will take the WORKDATE and tell you the day of the week it is..
    Monday, Tuesday, etc...

    Now just add a textbox to a report or form and use Weekday as it's sourceexp!

    Use this basic technique and adjust it to fit your needs.

    If it's some date you are deciding on then you would CHANGE WORKDATE (in this example) to Your Inputted Date. (type Date Field)
  • ATAT Member Posts: 20
    If not johnsogj would do it:

    I thank YOU \:D/ .

    This code helped me well.
  • SavatageSavatage Member Posts: 7,142
    AT wrote:
    If not johnsogj would do it:
    I thank YOU \:D/ .
    This code helped me well.

    :-k
  • garakgarak Member Posts: 3,263
    he mean: "thank's Savatage for this codesnippes"
    Do you make it right, it works too!
  • ATAT Member Posts: 20
    garak wrote:
    he mean: "thank's Savatage for this codesnippes"

    Right!
    Johnsogj got a solution for his Problem in 18 minutes. But he gave no answer if this was usefull for his job, he did not set the thread solved. That is not the way a forum should be used.
Sign In or Register to comment.