Date format: Difference between revisions

Add ed example
(Add ed example)
 
Line 1,705:
me_msg()_now()_format(yyyy-mm-dd);
me_msg()_now()_format(eeee, mmmm dd, yyyy);</syntaxhighlight>
 
=={{header|Ed}}==
 
Using <tt>date</tt> is cheating, but ed has no built-in date fetching/formatting. Most other languages use strftime, which is basically the same thing, anyway.
 
<syntaxhighlight lang="sed">
H
!date +"\%Y-\%m-\%d"
!date +"\%A, \%B \%d, \%Y"
Q
</syntaxhighlight>
 
=={{header|EGL}}==
77

edits