msgbox(0, "day name", _dayname()) #include ### function name = _dayname #### ;discription = Show days name in your preferred language ;The developer is Nacer baaziz ;eg : msgbox(0, "day name", _dayname()) ; you can move between the language by add ", 0". ; "0 = english, 1 = arabic, 2 = franch" ;eg : msgbox(0, "day name", _dayname(@mday, @mon, year, 1)) ##### func _dayname($day = @mday, $mon = @mon, $year= @year, $lng = StringRight(@OSLang, 2)) $dayname = _DateToDayOfWeek($year, $mon, $day) global $getday = _DateDayOfWeek($dayname) switch $lng case "01", "1" if $getday = "Saturday" then Return "السبت" elseif $getday = "Sunday" then Return "الأحد" elseif $getday = "Monday" then Return "الإثنين" elseif $getday = "Tuesday" then Return "الثلَثاء" elseif $getday = "Wednesday" then Return "الأربعاء" elseif $getday = "Thursday" then Return "الخميس" elseif $getday = "Friday" then Return "الجمعة" endIf case "09", "0" Return $getday case "0c", "2" if $getday = "Saturday" then Return "Samedi" elseif $getday = "Sunday" then Return "Dimanche" elseif $getday = "Monday" then Return "Lundi" elseif $getday = "Tuesday" then Return "Mardi" elseif $getday = "Wednesday" then Return "Mercredi" elseif $getday = "Thursday" then Return "Jeudi" elseif $getday = "Friday" then Return "Vendredi" endIf case else Return $getday endSwitch endFunc ### function name = _dayname #### ;discription = Show month name in your preferred language ;The developer is Nacer baaziz ;eg : msgbox(0, "month name", _monthname()) ; you can move between the language by add ", 0". ; "0 = english, 1 = arabic, 2 = franch" ;eg : msgbox(0, "month name", _monthname(@mon, 1)) ##### func _monthname($monthname = @mon, $lng2 = StringRight(@OSLang, 2)) global $getmonth = _DateToMonth($monthname) switch $lng2 case "01", "1" if $getmonth = "January" then Return "يناير" elseIf $getmonth = "February" then Return "فبراير" elseIf $getmonth = "March" then Return "مارس" elseIf $getmonth = "April" then Return "أبريل" elseIf $getmonth = "May" then Return "مايو" elseIf $getmonth = "June" then Return "يونيو" elseIf $getmonth = "July" then Return "يوليو" elseIf $getmonth = "August" then Return "أغسطس" elseIf $getmonth = "September" then Return "سبتمبر" elseIf $getmonth = "October" then Return "أكتوبر" elseIf $getmonth = "November" then Return "نوفمبر" elseIf $getmonth = "December" then Return "ديسمبر" endIf case "09", "0" Return $getmonth case "0C", "2" if $getmonth = "January" then Return "Janvier" elseIf $getmonth = "February" then Return "Février" elseIf $getmonth = "March" then Return "Mars" elseIf $getmonth = "April" then Return "Avril" elseIf $getmonth = "May" then Return "Mai" elseIf $getmonth = "June" then Return "Juin" elseIf $getmonth = "July" then Return "Juillet" elseIf $getmonth = "August" then Return "Août" elseIf $getmonth = "September" then Return "Septembre" elseIf $getmonth = "October" then Return "Octobre" elseIf $getmonth = "November" then Return "Novembre" elseIf $getmonth = "December" then Return "Décembre" endIf case else Return $getmonth endSwitch endFunc ### function name = _dayname #### ;discription = Show date with the month name and the day name in your preferred language ;The developer is Nacer baaziz ;eg : msgbox(0, "date", _getdate()) ; you can move between the language by add ", 0". ; "0 = english, 1 = arabic, 2 = franch" ;eg : msgbox(0, "date", _getdate(@day, @mon, @year, 1)) ##### func _getdate($day = @mday, $month = @mon, $year = @year, $lang = false) $_gday = _dayname($day, $month, $year, $lang) if @error then return -1 endIf $_gmonth = _monthname($month, $lang) if @error then return -1 endIf Return $_gday & ", " & $day & " " & $_gmonth & ", " & $year endFunc #####