Comments (3)
After looking at the original code of moment
here i tried doing it manually like
moment('2014-11-28 16:40:00', 'YYYY-M-D HH:mm:ss').startOf('hmonth').add(1, 'hmonth').subtract(1, 'milliseconds').format('hYYYY/hM/hD HH:mm:ss'); // 1436/2/30 23:59:59
And it worked ! 😄
It seems that there's a problem running normalizeUnits
or it could be solved by adding a definition for the method endOf
in this repo just like what have you done for the startOf
here
from moment-hijri.
Issue fixed!
Thanks!
from moment-hijri.
Thanks for your quick response 👍
from moment-hijri.
Related Issues (20)
- Why dates beyond 1500 AH not supported. HOT 3
- Incorrect dates convertion
- Uncaught TypeError: s.indexOf is not a function
- Parsing using iMMM returns incorrect date (off by one month)
- Month name in English
- Fomat date with year greater than 1500 gives undefined NaN error
- Can we set global timezone for moment-hijri?
- iDaysInMonth() gives number of days as 1 for some month of a year
- Mobile App
- How do i get month name?
- تساؤل: متى يبدأ اليوم في التقويم الهجري
- Illogical return from isSame() HOT 2
- Simple Hijri Date Converter
- Shawwal month not return from moment hijri (2022) HOT 2
- moment.localeData is not a function HOT 7
- Inconsistency when parsing month HOT 5
- 30-10-1400 shown as invalid date but is valid according to https://www.ummulqura.org.sa HOT 1
- Uncaught TypeError: moment.localeData is not a function
- I believe npmjs need to get latest update from here HOT 1
- Adding a day gives type error in typescript, '"iDate"' is not assignable to parameter of type 'IUnitOfTime'
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from moment-hijri.