Comments (6)
Thanks for your report. I will check this as soon as possible.
from ngx-persian.
Hello
This is not a problem of ngx-persian. You should pass an object of JDate
type to this pipe, not a Date
object.
Do you need the type conversion functionality in this pipe as well as formatting the date?
from ngx-persian.
Can you write an example of an object of JDate to pass to this pipe?
And yes it would be great if this pipe could convert a javascript date to the object type you mentioned above.
Good job
from ngx-persian.
There is an example of using pipes in the Test Application. You can take a look at it. But you can create your JDate
object any way you like.
If you need that feature, I will add that to the ngx-persian very soon.
from ngx-persian.
I've published a new version containing the change you wanted. Now you can use version 1.3.1 for passing Date
objects and getting a human-readable Jalali date from it using the exact same pipe.
from ngx-persian.
good job, thanks.
from ngx-persian.
Related Issues (12)
- [BUG]
- [Feature] HOT 1
- NationalCodeService
- [BUG] HOT 1
- [BUG] new JDate wrong example HOT 1
- [Feature] support angular 9 HOT 2
- Build Failed because of this module! HOT 1
- Seems that doesn't working with Angualr 11 HOT 4
- error NG6002: Appears in the NgModule.imports of AppModule, but could not be resolved to an NgModule class.[BUG] HOT 1
- [Feature] HOT 2
- [BUG] HOT 4
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 ngx-persian.