Comments (3)
Thank you for your suggestion,
Actually, I wanna implement a way to handle date formate in the future but right now I am busy a little until the next month but if you can help me I would be grateful.
from react-calendar-datetime-picker.
Cool I'll implement this feature then, using the 2nd proposed solution and raise a PR
from react-calendar-datetime-picker.
with above PR now you can add a formatValue prop to DtPicker component that will override the correctValue function's behaviour example below
const formatValue = ({ date }) => {
if(date) return (new Date(date.year, date.month, date.day)).toDateString()
else return ''
}
time and type are also accessible in this prop function. @mmehdinasiri waiting for your approval
from react-calendar-datetime-picker.
Related Issues (11)
- [Question] Range of days with time HOT 1
- multiple daterange picker on the same page has conflicting onChange HOT 1
- Close the calendar on selection HOT 3
- feature request : add an prop to DtPicker component to assign id to input HOT 2
- Issue with typing in the clock input
- Focusing on date picker input by Tab key HOT 2
- [Question] Monday as a first day of a week HOT 1
- maxDate and minDate are not updated if used with a React State HOT 1
- can not import 'react-calendar-datetime-picker/dist/index.css' HOT 1
- Vanilla JS HOT 1
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 react-calendar-datetime-picker.