Skip to content

Latest commit

 

History

History
31 lines (16 loc) · 936 Bytes

README.md

File metadata and controls

31 lines (16 loc) · 936 Bytes

date2day("29/02/2020") = 'saturday'

INTRODUCTION

The name specifies what it does. Given a date it will convert it into a day

HOW TO USE

   Include this line in your script  : 		 <script type="text/javascript" src="https://github.com/manikanta-kondeti/date2day/date2day.js"></script>
  •     Usage : 
    
  •    var day = date2day("23/6/2016");  // input must be a string : <day/month/year> 
    
  •    console.log(day); // Output must be a string ('thursday') or ('not a valid date').
    

REFERENCE

Reference: http://www.cprogramming.com/tutorial/modulus.html

Motivation

I have got a small problem which involves dates and I wanted to extract day from each date. So I had written this library for similar purposes. Have you got more ideas? ping me and lets make it bigger. Code is fun :)

Contributors

Contact me on email if you have more ideas to extend.

License

GPLV3.0 : check the license file