You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 21, 2019. It is now read-only.
Copy file name to clipboardExpand all lines: demo.html
+51-12Lines changed: 51 additions & 12 deletions
Original file line number
Diff line number
Diff line change
@@ -39,37 +39,48 @@
39
39
border-radius:4px04px0;
40
40
}
41
41
42
-
.dn-timepicker-popup {
43
-
max-height:300px;
44
-
overflow-y: scroll;
45
-
}
42
+
.footer {
43
+
text-align: center;
44
+
padding:30px0;
45
+
margin-top:70px;
46
+
border-top:1px solid #e5e5e5;
47
+
background-color:#f5f5f5;
48
+
}
49
+
50
+
.footerp {
51
+
margin-bottom:0;
52
+
}
46
53
</style>
47
54
</head>
48
55
<body>
49
56
<divclass="container" ng-controller="controller">
50
57
<headerclass="page-header">
51
-
<h1>Angular DateParser <small>Demo</small></h1>
58
+
<h1>AngularJS DateParser <small>Demo</small></h1>
52
59
</header>
53
60
54
-
<p>This parser converts dateand time strings into JavaScript Date objects.</p>
61
+
<p>The AngularJS library has a <ahref="http://docs.angularjs.org/api/ng/filter/date" target="_blank" title="AngularJS date filter">date filter</a> that allows JavaScript Date objects to be displayed using a provided format. This is an awesome feature, and it's great that you can use it anywhere, including text input boxes. But the problem is that it only works one-way. There's currently no way to convert strings back into Date objects while using the same format initially used to display it. This parser was designed to overcome this problem.</p>
55
62
56
63
<h4>Basic</h4>
64
+
<p>This is a basic example demonstrating how the parser can convert manually entered date strings into JavaScript Date objects.</p>
<p>Use all the shortname formats provided by Angular.</p>
82
+
<p>The AngularJS date filter comes with several shortname formats that you can use. The DateParser can recognise these formats and will convert the date strings accordingly.</p>
83
+
73
84
<divclass="bs-docs-example">
74
85
<p>
75
86
<divclass="input-prepend">
@@ -122,8 +133,9 @@ <h4>Using Angular Date Formats</h4>
<p>The parser also allows you to change the timezone. However, bear in mind that the model will still contain the date and time for the local timezone, minus the offset.</p>
0 commit comments