Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
jalali-moment
Advanced tools
Display, parse, manipulate ,validate and convert jalali (Persian, Khorshidi, Shamsi) date and time
Display, parse, manipulate and validate jalali (Persian, Khorshidi, Shamsi) or Gregorian (Miladi) dates and times and also convert Jalali (Persian, Khorshidi, Shamsi) date to Gregorian (Miladi) or vice versa in javascript or typescript.DEMO
Read this in other languages: فارسی
How to use jalali moment in
This plugin provide using jalali and gregorian calendar system together on momentjs api.
.locale('fa');
it will use jalali calendar system
.locale('any other locale');
it will use gregorian calendar system
moment.locale('fa'); // set fa locale for all new moment instances
var m1 = moment("1367/11/04","YYYY/MM/DD");
m1.format("YYYY/MM/DD"); // 1367/11/04
m1.add(1, "day").format("YYYY/MM/DD"); // 1367/11/05
m1.isValid(); // true
moment('1367/11/04', 'YYYY/MM/DD').locale('en').format('YYYY/MM/DD'); // 1989/01/24
//set en locale just for this instance
moment.locale('en');
moment('1989/01/24').locale('fa').format('YYYY/MM/DD'); // 1367/11/04
FAQs
Manipulate and convert Jalali and Gregorian date easily
We found that jalali-moment demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.