;


                // Array of days.
                var weekday = ['sunday', 'monday', 'tuesday',
                    'wednesday', 'thursday', 'friday', 'saturday'
                ];
                //  document.write("Today is : " + weekday[myDay]);
                //  document.write("<br/>");

                // get hour value.
                var hours = myDate.getHours();
                var ampm = hours >= 12 ? 'PM' : 'AM';
                hours = hours % 12;
                hours = hours ? hours : 1