Get the name of the day today!
Easy-to-understand-function that returns the day todays name in string and takes no parameters. It returns the name in Englsih even if the operating system is another laguage. Good for text editing programs. Please rate...
AI
ملخص الذكاء الاصطناعي: This codebase represents a historical implementation of the logic described in the metadata. Our preservation engine analyzes the structure to provide context for modern developers.
كود المصدر
Here is an example of what the function returns: <br>
'The day today is ' + daytoday+'.'<br>
Returns on a monday:<br>
The day today is Monday.<br><br>
Here is the function:<br>
function daytoday: string;<br>
begin<br>
Result:=''; {Can be removed}<br>
if dayofweek(now)=1 then<br>
result:='Sunday' else<br>
if dayofweek(now)=2 then<br>
result:='Monday' else<br>
if dayofweek(now)=3 then<br>
result:='Tuesday' else<br>
if dayofweek(now)=4 then<br>
result:='Wednesday' else<br>
if dayofweek(now)=5 then<br>
result:='Thursday' else<br>
if dayofweek(now)=6 then<br>
result:='Friday' else<br>
if dayofweek(now)=7 then<br>
result:='Saturday';<br>
end;
Upload
التعليقات الأصلية (3)
مسترجع من Wayback Machine