Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
0 votes
3 answers
465 views

Save the date in and display it in the good format

I am programming a crud application with a creation date. when I add a new object, the date is saved on the database with a good format : Database Now when the date is displayed on the table, it ...
Hassan Jroundi's user avatar
0 votes
2 answers
667 views

HTML Input[Date] defaulting to mm/dd/yyyy despite locale settings

I am using a html date input in an ng-repeat scenario, and it seems to default to mm/dd/yyyy despite my computer regional settings being set to dd/mm/yyyy. <script src="//unpkg.com/angular/...
Riples's user avatar
  • 1,167
0 votes
1 answer
41 views

Setting First input type date value as the min date value of the second input date type in angularjs

I have two input type date fields and I need to make the selected date of the first input date type as the minimum date of the second input date type. How can I achieve this? Please find my existing ...
tharindu's user avatar
  • 523
0 votes
0 answers
116 views

Input date format changing by itself and I don't know why

I am writing API for filtering my data. In order to do filtering, I am adding filter inputs to the filter object which is initialized in my angularJs controller. I am trying to get date value from ...
safaer's user avatar
  • 191
2 votes
2 answers
264 views

Manual selection input date to max returns undefined

I have two datepickers with max and min set. If for From date max is set as a particular date and I select that date manually it returns invalid date. Selecting any other date returns correct value.(...
Mrinmoy Das's user avatar
0 votes
1 answer
43 views

Can I pass a piped date as an argument? - Angular

Is it possible to pass a piped date as an argument for a function? I am thinking of something along the lines of... A variable date: string that will be assigned a value passed from a datepicker The ...
physicsboy's user avatar
  • 6,398
1 vote
2 answers
275 views

How to get my dates out of local storage and set them without the time?

I have an event form that where I get information put it in the localstorage (I cannot use an API) and I want to take the startdate and enddate out of localstorage, change them so they appear as dd-mm-...
Krontime's user avatar
0 votes
1 answer
73 views

HTML5 input date to T-Sql date with AngularJS

I am trying to convert a date from my HTML 5 form: <form ng-submit="Add()"> <input type="text" ng-model="Data.title" /> <input type="date" ng-model="Data.date"/> </form> ...
Ewald Bos's user avatar
  • 1,790
0 votes
1 answer
770 views

Allowing empty values in HTML5 date input [duplicate]

If I use an HTML5 date input and that field represents a date that maps to a nullable datetime column in the database, how do I get around setting an empty value in the input field? My application is ...
DesertFoxAZ's user avatar
0 votes
2 answers
896 views

Set an invalid date string HTML5 date input

I'm wondering if it is possible to set an invalid date string to an HTML5 date input after some JS check, for example "Today" instead of displaying XX-XX-XXXX date? Note that I'm working with angular-...
Trabelsi Mohamed Hedi's user avatar
0 votes
1 answer
950 views

How to create a date field for mm/yyyy

How do I create a date field in angular/html to force the user to input the date in a specific format like MM/yyyy without any validation? For example: when the user enters the first two digits of ...
Vishal--JAVA--CQ's user avatar
2 votes
2 answers
3k views

HTML5 input date format with angular scope

I have a HTML 5 input type="date". <input type="date" required ng-model="nm.pick" id="dpicker "> Then in my angular controller, I am assigning value nm.pick = $filter("date")(Date.now(), 'dd/...
Arun's user avatar
  • 684
0 votes
2 answers
251 views

How to convert date and time to specific format in html

I need to display date and time in specific format inside ng-repeat. Date value I am getting from backend is "2017-04-03 05:00:07" to "5 hours" if current time is 10am. If it is a day before means ...
sudarsan's user avatar
0 votes
3 answers
557 views

datetime-local different format after selecting

Given is an ionic app with <input type='datetime-local'> inputs which runs on an android system. The problem ist that the inputs have different formats after the user selects a Dates. Start is ...
Mazz's user avatar
  • 1,879
0 votes
1 answer
2k views

datefmt error in angularJS

I am trying to add a date to an input but seem to be having real problems with the errors even tho the date is displaying Formatt code $scope.formatt=function(dte){ return moment(dte).format("...
Alex Banerjee's user avatar

15 30 50 per page
1
2 3 4 5