Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mariusmonkam/date-and-time
Add date and time to your react-native component
https://github.com/mariusmonkam/date-and-time
Last synced: 1 day ago
JSON representation
Add date and time to your react-native component
- Host: GitHub
- URL: https://github.com/mariusmonkam/date-and-time
- Owner: mariusmonkam
- Created: 2020-10-01T10:58:35.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-10-01T11:04:02.000Z (over 4 years ago)
- Last Synced: 2024-11-13T22:36:07.953Z (2 months ago)
- Language: JavaScript
- Size: 5.86 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# react-native-date-and-time
## Usage
```javascript
import * as dateMethods from "./dateMethods";
// TODO: What to do with the module?
const App = () => {
console.log(dateMethods.getYear());
console.log(dateMethods.getMonth());
console.log(dateMethods.getDay());
console.log(dateMethods.getTime());
console.log(dateMethods.getDateTime());
return (
{dateMethods.getYear()}{dateMethods.getMonth()}
{dateMethods.getDay()}
{dateMethods.getTime()}
{dateMethods.getDateTime()}
);
};
```