What do you want to save?
Add Code snippet
New code examples
-
Javascript 2021-10-29 23:30:12
how to write a program that displays a message “It’s Fun day” if it's Saturday or Sunday today in javascript
var currentDate = new Date(); currentDate.toString; var b = currentDate.toString(); var c = b.slice(0,3); if (c === "Sat"){ document.write("It's Fun Day") }else if(c === "Sun"){ document.write("It's Fun Day"... Add solution -
Javascript 2021-10-13 21:32:04
how to print date like 10-may-2018 in javascript
date.toString('YYYY-MM-dd'); 'Tue Feb 10 2015 15:42:50' var date = new Date('4-1-2015'); date.getDay();// returns 3 date.getYear();// returns 115, no of years after 1900 date.getFullYear();// returns 2015 date.getMonth();// returns 3, starting 0... Add solution -
C# 2021-09-19 07:01:03
how to iterate between hour range in c#
DateTime testDate = new DateTime(2011, 12, 15, 00, 00, 00, DateTimeKind.Local); DateTime endDate = testDate.AddDays(1); while (testDate.Date != endDate.Date) { Console.WriteLine(testDate.ToString()); testDate = testDate.AddHours(1); } Add solution -
Javascript 2021-08-28 02:24:01
how to write a program that alerts the current month in words in javascript
var currentDate = new Date(); currentDate.toString; var b = currentDate.toString(); var c = b.slice(4,7); if (c === "Jan"){ document.write("Current month: January") }else if(c === "Feb"){ document.write("Current ... Add solution
Best helpers
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5