
Security News
GitHub Actions Checkout Now Blocks Risky pull_request_target Checkouts
GitHub Actions checkout now blocks risky pull_request_target checkouts by default to help prevent pwn request supply chain attacks.
nativescript-material-datetimepicker
Advanced tools
NativeScript Plugin to use Material Design Date and Time Picker
This plugin is a wrapper around android.app.DatePickerDialog for Android.
All functionality of this plugin, and more (including iOS Support), is now available at nativescript-modal-datetimepicker <3
Use this plugin, only if you don't need iOS support, and other additional features. Be warned, development of this plugin has been discontinued.
tns plugin add nativescript-material-datetimepicker
NativeScript Core
const MDTPicker = require("nativescript-material-datetimepicker").MaterialDatetimepicker;
const mDtpicker = new MDTPicker();
// Pick Date
exports.selectDate = function() {
mDtpicker.pickDate()
.then((result) => {
console.log("Date is: " + result.day + "-" + result.month + "-" + result.year);
})
.catch((error) => {
console.log("Error: " + error);
});
};
// Pick Time
exports.selectTime = function() {
mDtpicker.pickTime()
.then((result) => {
console.log("Time is: " + result.hour + ":" + result.minute);
})
.catch((error) => {
console.log("Error: " + error);
});
};
pickDate(): Promise<{}>;
Returns a promise that resolves to date object
date: {
day: number,
month: number,
year: number
}
pickTime(is24HourView?): Promise<{}>;
Returns a promise that resolves to time object
time: {
hour: number,
minute: number
}
Passing true to this API, shows a 24hr View timepicker.
Apache License Version 2.0, January 2004
FAQs
NativeScript Plugin to use Material Design Date and Time Picker
We found that nativescript-material-datetimepicker demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
GitHub Actions checkout now blocks risky pull_request_target checkouts by default to help prevent pwn request supply chain attacks.

Product
Socket now supports Custom Roles and Repository Access Permissions so organizations can control who can access specific repositories and actions.

Product
Socket MCP now lets AI assistants review org alerts, investigate threats using the Socket threat feed, and inspect package files in addition to dependency scoring.