{"id":13713185,"url":"https://github.com/dimonovdd/Xamarin.DateTimePopups","last_synced_at":"2025-05-06T23:30:45.383Z","repository":{"id":47627067,"uuid":"345395668","full_name":"dimonovdd/Xamarin.DateTimePopups","owner":"dimonovdd","description":"Little library of popups for picking dates and times","archived":false,"fork":false,"pushed_at":"2021-08-20T21:50:38.000Z","size":898,"stargazers_count":13,"open_issues_count":1,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-05T21:05:30.265Z","etag":null,"topics":["date","datepicker","datetimepicker","picker","popup","time","timepicker","xamarin","xamarin-android","xamarin-forms","xamarin-ios"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dimonovdd.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-03-07T16:28:03.000Z","updated_at":"2023-04-22T18:56:48.000Z","dependencies_parsed_at":"2022-09-06T13:11:32.150Z","dependency_job_id":null,"html_url":"https://github.com/dimonovdd/Xamarin.DateTimePopups","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dimonovdd%2FXamarin.DateTimePopups","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dimonovdd%2FXamarin.DateTimePopups/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dimonovdd%2FXamarin.DateTimePopups/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dimonovdd%2FXamarin.DateTimePopups/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dimonovdd","download_url":"https://codeload.github.com/dimonovdd/Xamarin.DateTimePopups/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252787180,"owners_count":21804211,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["date","datepicker","datetimepicker","picker","popup","time","timepicker","xamarin","xamarin-android","xamarin-forms","xamarin-ios"],"created_at":"2024-08-02T23:01:29.138Z","updated_at":"2025-05-06T23:30:43.672Z","avatar_url":"https://github.com/dimonovdd.png","language":"C#","funding_links":[],"categories":["UI"],"sub_categories":[],"readme":"# Xamarin.DateTimePopups [![NuGet Badge](https://buildstats.info/nuget/Xamarin.DateTimePopups)](https://www.nuget.org/packages/Xamarin.DateTimePopups/)\n### Little library of popups for picking dates and times\n\n![header](/header.svg)\n\n# Available Platforms\n\n| Platform | Version |\n| --- | --- |\n| Android | MonoAndroid90+|\n| iOS | Xamarin.iOS10 |\n| .NET Standard | 2.0 |\n\n# Getting started\nThis library can be used in Xamarin.iOS, Xamarin.Android or Xamarin.Forms projects\n\n## Android\nIn the Android project's MainLauncher or any Activity that is launched, this library must be initialized in the OnCreate method:\n```csharp\nprotected override void OnCreate(Bundle savedInstanceState)\n{\n    //...\n    base.OnCreate(savedInstanceState);\n    Xamarin.DateTimePopups.Platform.Init(this, savedInstanceState); // add this line to your code, it may also be called: bundle\n    //...\n}\n ```\n\n## iOS (Optional)\nYou can set the function to get the current `UIView`\n\n```csharp\npublic override bool FinishedLaunching(UIApplication app, NSDictionary options)\n{\n    Xamarin.DateTimePopups.Platform.Init(()=\u003e Xamarin.Essentials.Platform.GetCurrentUIViewController()?.View);\n    global::Xamarin.Forms.Forms.Init();\n    LoadApplication(new App());\n\n    return base.FinishedLaunching(app, options);\n}\n ```\n \n## Shared\n\n```csharp\nusing System;\nusing Xamarin.Forms;\nusing Xamarin.DateTimePopups;\n\nnamespace Sample.Views\n{\n    public partial class HomePage : ContentPage\n    {\n        public HomePage()\n            =\u003e InitializeComponent();\n\n        async void DateButton_Clicked(System.Object sender, System.EventArgs e)\n        {\n            DateTime? date = await DateTimePopups.PickDateAsync();\n            ResultLabel.Text = date.ToString();\n        }\n\n        async void TimeButton_Clicked(System.Object sender, System.EventArgs e)\n        {\n            TimeSpan? date = await DateTimePopups.PickTimeAsync();\n            ResultLabel.Text = date.ToString();\n        }\n    }\n}\n ```\n\n ## Screenshots\n\n| iOS (Date) | Android (Date) | iOS (Time) | Android (Time) |\n|:--:|:--:|:--:|:--:|\n|![iosDate](/Screenshots/iosDate.png)|![androidDate](/Screenshots/androidDate.png)|![iosTime](/Screenshots/iosTime.png)|![androidTime](/Screenshots/androidTime.png)|\n\n\n## Powered by\n- [Xamarin.iOS.DatePickerDialog](https://github.com/alexsorokoletov/Xamarin.iOS.DatePickerDialog)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdimonovdd%2FXamarin.DateTimePopups","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdimonovdd%2FXamarin.DateTimePopups","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdimonovdd%2FXamarin.DateTimePopups/lists"}