is-date-calculator
v1.0.2
Published
Calculator for dates. Add , Subtract and find difference between two dates.
Downloads
1
Readme
��#� �D�a�t�e� �C�a�l�c�u�l�a�t�o�r� �n�p�m� �P�a�c�k�a�g�e�
�
� �
�
� �#� �P�r�e�r�e�q�u�i�s�i�t�e�
�
� �T�h�i�s� �p�r�o�j�e�c�t� �r�e�q�u�i�r�e�s� �N�o�d�e�J�S� �(�v�e�r�s�i�o�n� �8� �o�r� �l�a�t�e�r�)� �a�n�d� �N�P�M�.� �N�o�d�e� �a�n�d� �N�P�M� �a�r�e� �r�e�a�l�l�y� �e�a�s�y� �t�o� �i�n�s�t�a�l�l�.� �T�o� �m�a�k�e� �s�u�r�e� �y�o�u� �h�a�v�e� �t�h�e�m� �a�v�a�i�l�a�b�l�e� �o�n� �y�o�u�r� �m�a�c�h�i�n�e�,� �t�r�y� �r�u�n�n�i�n�g� �t�h�e� �f�o�l�l�o�w�i�n�g� �c�o�m�m�a�n�d�.�
�
� �
�
� ��
��
�
� �$� �n�p�m� �-�v� �&�&� �n�o�d�e� �-�v�
�
�6�.�4�.�1�
�
�v�8�.�1�6�.�0�
�
� �
��
�
�
�
�
�#� �G�e�t�t�i�n�g� �S�t�a�r�t�e�d�
�
�T�h�e�s�e� �i�n�s�t�r�u�c�t�i�o�n�s� �w�i�l�l� �g�e�t� �y�o�u� �a� �c�o�p�y� �o�f� �t�h�e� �p�r�o�j�e�c�t� �u�p� �a�n�d� �r�u�n�n�i�n�g� �o�n� �y�o�u�r� �l�o�c�a�l� �m�a�c�h�i�n�e� �f�o�r� �d�e�v�e�l�o�p�m�e�n�t� �a�n�d� �t�e�s�t�i�n�g� �p�u�r�p�o�s�e�s�.� �S�e�e� �d�e�p�l�o�y�m�e�n�t� �f�o�r� �n�o�t�e�s� �o�n� �h�o�w� �t�o� �d�e�p�l�o�y� �t�h�e� �p�r�o�j�e�c�t� �o�n� �a� �l�i�v�e� �s�y�s�t�e�m�.�
�
�
�
�#�#� �I�n�s�t�a�l�l�a�t�i�o�n�
�
�
�
�T�o� �i�n�s�t�a�l�l� �a�n�d� �s�e�t� �u�p� �t�h�e� �l�i�b�r�a�r�y�,� �r�u�n�:�
�
��
��
�
�$� �n�p�m� �i� �i�s�-�d�a�t�e�-�c�a�l�c�u�l�a�t�o�r�
�
�
��
�
�
�
�
�O�r� �i�f� �y�o�u� �p�r�e�f�e�r� �u�s�i�n�g� �Y�a�r�n�:�
�
�
�
��
��
�
�$� �y�a�r�n� �a�d�d� �i�s�-�d�a�t�e�-�c�a�l�c�u�l�a�t�o�r�
�
�
��
�
�
�
�
�#� �U�s�a�g�e�
�
�
�
�#�#�
�
�
�
�#�#� �T�o� �a�d�d� �d�a�y�s� �t�o� �a� �d�a�t�e�:�
�
�
�
��
��
�
�c�o�n�s�t� �d� �=� �r�e�q�u�i�r�e�(�"�i�s�-�d�a�t�e�-�c�a�l�c�u�l�a�t�o�r�"�)�;�
�
�
�
�c�o�n�s�t� �b� �=� �n�e�w� �d�(�)�;�
�
�c�o�n�s�t� �d�a�t�e� �=� �n�e�w� �D�a�t�e�(�)�;�/�/� �8�/�8�/�2�0�2�2�
�
�c�o�n�s�t� �c� �=� �b�.�a�d�d�D�a�y�s�(�d�a�t�e�,�1�0�)�;�
�
�
�
�c�o�n�s�o�l�e�.�l�o�g�(�c�.�t�o�L�o�c�a�l�e�D�a�t�e�S�t�r�i�n�g�(�)�)�;�
�
�
��
�
�
�#�#�#� �O�u�t�p�u�t�
�
��
��
�
�1�8�/�8�/�2�0�2�2�
�
�
��
�
�
�#�#� �T�o� �s�u�b�t�r�a�c�t� �d�a�y�s� �f�r�o�m� �a� �d�a�t�e�:�
�
�
�
��
��
�
�c�o�n�s�t� �d� �=� �r�e�q�u�i�r�e�(�"�i�s�-�d�a�t�e�-�c�a�l�c�u�l�a�t�o�r�"�)�;�
�
�
�
�c�o�n�s�t� �b� �=� �n�e�w� �d�(�)�;�
�
�c�o�n�s�t� �d�a�t�e� �=� �n�e�w� �D�a�t�e�(�)�;�/�/� �8�/�8�/�2�0�2�2�
�
�c�o�n�s�t� �c� �=� �b�.�s�u�b�D�a�y�s�(�d�a�t�e�,�1�0�)�;�
�
�
�
�c�o�n�s�o�l�e�.�l�o�g�(�c�.�t�o�L�o�c�a�l�e�D�a�t�e�S�t�r�i�n�g�(�)�)�;�
�
�
��
�
�
�#�#�#� �O�u�t�p�u�t�
�
��
��
�
�2�9�/�7�/�2�0�2�2�
�
�
��
�
�
�
�
�#�#� �T�o� �f�i�n�d� �d�i�f�f�e�r�e�n�c�e� �b�e�t�w�e�e�n� �t�w�o� �d�a�t�e�s�:�
�
��
��
�
�c�o�n�s�t� �d� �=� �r�e�q�u�i�r�e�(�"�i�s�-�d�a�t�e�-�c�a�l�c�u�l�a�t�o�r�"�)�;�
�
�
�
�c�o�n�s�t� �b� �=� �n�e�w� �d�(�)�;�
�
�c�o�n�s�t� �d�a�t�e�1� �=� �n�e�w� �D�a�t�e�(�'�1�/�1�/�1�'�)�;�
�
�c�o�n�s�t� �d�a�t�e�2� �=� �n�e�w� �D�a�t�e�(�'�2�/�2�/�2�'�)�;�
�
�c�o�n�s�t� �d�a�y� �=� �b�.�d�i�f�f�D�a�y�s�(�d�a�t�e�1�,�d�a�t�e�2�)�;�
�
�c�o�n�s�t� �m�o�n�t�h� �=� �b�.�d�i�f�f�M�o�n�t�h�(�d�a�t�e�1�,�d�a�t�e�2�)�;�
�
�c�o�n�s�t� �y�e�a�r� �=� �b�.�d�i�f�f�Y�e�a�r�(�d�a�t�e�1�,�d�a�t�e�2�)�;�
�
�
�
�
�
�c�o�n�s�o�l�e�.�l�o�g�(�d�a�y�)�;�
�
�c�o�n�s�o�l�e�.�l�o�g�(�m�o�n�t�h�)�;�
�
�c�o�n�s�o�l�e�.�l�o�g�(�y�e�a�r�)�;�
�
�
��
�
�
�
�
�#�#�#� �O�u�t�p�u�t�
�
��
��
�
�3�9�7�
�
�1�4�
�
�1�
�
�
��
�
�
�