RPGIV @ Work

A unique site for RPG and System i Lovers

Welcome!

Hi, this site will provide all what you need in System i and RPG developments.

My Name is Chamara Withanachchi, System i Expert and RPG Developer. And in the field for last 11 years.

I hope you will find lot of valuable information from this site

Get the Day of week Print E-mail
User Rating: / 2
PoorBest 
Written by Chamara Withanachchi   
                                                                      
     D tmpDate         S             10a   Inz('2010-10-31')          
     D dayNbr          S             11p 0                            
                                                                      
      /Free                                                           
                                                                      
           // 0=Mon, 1=Tue, 2=Wed, 3=Thu, 4=Fri, 5=Sat, 6=Sun         
           dayNbr = %rem(%diff(%date(tmpDate):d'0001-01-01':*days):7);
           *InLr = *On;                                               
                                                                      
      /End-Free                                                       

User Comments

Please login or register to add comments

<Previous   Next>