Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
T
technobel.sf
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
mathieu
technobel.sf
Commits
310c4354
Commit
310c4354
authored
May 16, 2018
by
Mat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
javascript, 2 fonctions pour afficher les dates
parent
6d0188aa
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
1 deletion
+7
-1
src/TechnoBundle/Resources/views/Ajax/Owner/mainDisplay.html.twig
...noBundle/Resources/views/Ajax/Owner/mainDisplay.html.twig
+1
-1
web/js/script.js
web/js/script.js
+6
-0
No files found.
src/TechnoBundle/Resources/views/Ajax/Owner/mainDisplay.html.twig
View file @
310c4354
...
@@ -71,7 +71,7 @@
...
@@ -71,7 +71,7 @@
tr
.
appendChild
(
td2
);
tr
.
appendChild
(
td2
);
let
td3
=
document
.
createElement
(
'
td
'
);
let
td3
=
document
.
createElement
(
'
td
'
);
td3
.
textContent
=
json
[
i
].
created_at
;
td3
.
textContent
=
formatStringDate
(
json
[
i
].
created_at
)
;
tr
.
appendChild
(
td3
);
tr
.
appendChild
(
td3
);
let
td4
=
document
.
createElement
(
'
td
'
);
let
td4
=
document
.
createElement
(
'
td
'
);
...
...
web/js/script.js
View file @
310c4354
function
formatDate
(
date
)
{
return
date
.
getDate
()
+
'
/
'
+
(
date
.
getMonth
()
+
1
)
+
'
/
'
+
date
.
getFullYear
();
}
function
formatStringDate
(
string
)
{
return
formatDate
(
new
Date
(
string
));
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment