Ionic date and time - datetime

I am trying to implement a form in ionic and I am struggling with the date inputs. I set the upper range of the interval of dates allowed to be 2100 (comparing to the end of the current year,which is by default),but I want the following scenario to happen: when someone clicks to choose a date, I want the picker to start from the current date and to allow going up and down to choose a past of future date. At the moment,the picker starts at the upper end of the interval,2100, and it is difficult for someone to go down to 2016 or so,if they need dates close to the current day.
<ion-datetime max="2100-12-31" [(ngModel)]="formItem.input"></ion-datetime>
How can I achieve this? Thank you!

Related

How to limit the date values to allow a range of 45 days from today in an InfoPath date field?

I need to limit the date range of a Date Field or Date Picker in MS InfoPath 2013 to allow the user to only select a date that falls within 45 days from today.
Would like either a message box or screen tip to alert the user to enter a date less than 45 days in the future.
You can create a valifdation rule like the one mentioned below to achieve this. InfoPath does not support dialog box message for browser based forms (only the screen tip will work for browser based forms)
click here
Hopefully this helped you :)

Specifying time duration for query?

I want to create a dashboard that shows me how many clicks I had today vs how many clicks I had on the exact same day last week.
From the docs, the diffSeries function can subtract a series from another but how do I get the timeseries of previous week?
It's look like you need timeShift function.

Need daily totals via web app date range query

Newbie Question! I'm using the web api I'm able to get the entire totals over a date range, but I want the daily totals too! Sounds simple enough, but I can't get it. Trying
https://www.googleapis.com/analytics/v3/data/ga?ids=ga:AAAAAAA&start-date=2013-09-20&end-date=2013-09-30&metrics=ga:visitors,ga:visits,ga:bounces,ga:newVisits,ga:entrances,ga:pageviews,ga:uniquePageviews,ga:timeOnPage,ga:exits,ga:timeOnSite&query(start-date,end-date)&access_token=XXXXX
I can see in the console that I have data on more than one day during this range.
It appears you can add a "dimension" of ga:date (or week or year) that will return that granularity of detail to the queries.

Last Date of Next Month: SSRS

I have a date, for example, 12/14/2011.
I would like to get the last day of the next month, which would be 01/31/2012.
How can I achieve this in SSRS.
This has been answered at this link: https://stackoverflow.com/a/5539615/168703.
One of your datasets in reporting services should reference a common place for all date functions. And then you can use the date functions to set parameters.
I have highlighted step by step how to do this for reporting services with screen shots in that link.

Drupal: Custom date widget?

I'm trying to create a custom date widget. Users can only chose a date from the next 10 days. So, instead of making them chose year, month, day, hours and minutes I want to have a single select list for the date (next 10 days) and two select lists for the time (hours and minutes).
Here is what I'm trying to achieve:
http://i52.tinypic.com/jikrv7.png
This is not just about changing date field settings (like granularity), I'm pretty sure I'll have to write some code to have correct dates in the select list (there could be 5 days from the current month and 5 days from the next one), and then correctly handle everything after user submits data.
What's the best way to achieve this? Where should I start from?
I would greatly appreciate any suggestions.
Thank you!
You need to implement hook_widget and possibly hook_widget_info and hook_widget_settings. Also have a look at CCK for developers.

Resources