mdn / beginner-html-site-scripted

A single-page website created to help complete beginners learn HTML with JS added to help beginners learn JavaScript. Supports https://developer.mozilla.org/en-US/Learn/Getting_started_with_the_web/JavaScript_basics
https://mdn.github.io/beginner-html-site-scripted/
Creative Commons Zero v1.0 Universal
262 stars 296 forks source link

Hijry time #38

Closed hamza011941 closed 1 year ago

hamza011941 commented 1 year ago

What information was incorrect, unhelpful, or incomplete?

Nuthing

What did you expect to see?

Bsjsj

Do you have any supporting links, references, or citations?

Non

Do you have anything more you want to share?

Non

github-actions[bot] commented 1 year ago

It looks like this is your first issue. Welcome! 👋 One of the project maintainers will be with you as soon as possible. We appreciate your patience. To safeguard the health of the project, please take a moment to read our code of conduct.

hamza011941 commented 1 year ago

const moment = require('moment-hijri');

// تاريخ هجري للتحويل const hijriDate = moment('1444-02-17', 'iYYYY-iMM-iDD');

// التحويل إلى الأرقام العربية const arabicDate = hijriDate.format('iYYYY/iM/iD');

console.log(arabicDate); // ستظهر النتيجة: ١٤٤٤/٢/١٧

hamza011941 commented 1 year ago

const moment = require('moment-hijri'); // تاريخ هجري للتحويل const hijriDate = moment('1444-02-17', 'iYYYY-iMM-iDD'); // التحويل إلى الأرقام العربية const arabicDate = hijriDate.format('iYYYY/iM/iD'); console.log(arabicDate); // ستظهر النتيجة: ١٤٤٤/٢/١٧

hamza011941 commented 1 year ago

const moment = require('moment-hijri');

// تاريخ هجري للتحويل const hijriDate = moment('1444-02-17', 'iYYYY-iMM-iDD');

// التحويل إلى الأرقام العربية const arabicDate = hijriDate.format('iYYYY/iM/iD');

console.log(arabicDate); // ستظهر النتيجة: ١٤٤٤/٢/١٧

hamza011941 commented 1 year ago

const moment = require('moment-hijri');

// تاريخ هجري للتحويل const hijriDate = moment('1444-02-17', 'iYYYY-iMM-iDD');

// التحويل إلى الأرقام العربية const arabicDate = hijriDate.format('iYYYY/iM/iD');

console.log(arabicDate); // ستظهر النتيجة: ١٤٤٤/٢/١٧