We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d674a36 commit ec8c6fdCopy full SHA for ec8c6fd
JavaScriptDates.js
@@ -0,0 +1,7 @@
1
+function getDayName(dateString) {
2
+ const dayName=new Date(dateString);
3
+ const days={
4
+ weekday:'long'
5
+ };
6
+ return new Intl.DateTimeFormat('en-Us',days).format(dayName);
7
+}
0 commit comments