1.0.0 • Published 1 year ago

@salmansaeed/datepackage v1.0.0

Weekly downloads
-
License
ISC
Repository
github
Last release
1 year ago

date

Date Package for JavaScript: This Package Acts like a Factory for Date and Time To use this Package after installing create a new object by calling myDateTimeObject. Follow the steps

npm install @salmansaeed/date

  1. Import the Package

import {myDateTimeObject} from '@salmansaeed/date';

  1. delcare the variable let xDate = new myDateTimeObject();

  2. Use it by accessing date property for date or time property for time

console.log(xDate.date +" "+ xDate.time)

you can also use it without the new keyword by using the following

let myDate = myDateTimeObject().date; let myTime = myDateTimeObject().time;

console.log(myDate); console.log(myTime);

1.0.0

1 year ago