Skip to content

Error en ToDo App - Modulo 5: 6.1 Mongo y NodeJS #199

Answered by mabvmex
mabvmex asked this question in Q&A
Discussion options

You must be logged in to vote

Solucionado!!!

El error está en views/index.jade(en la palabra reservada 'new') :

- var date = New Date(task.date); --> - var date = new Date(task.date);

each task in tasks tr td #{task.name} td #{task.category} - var date = new Date(task.date); - var day = date.getDate(); - var month = date.getMonth() + 1; - var year = date.getFullYear(); td #{day + "/" + month + "/" + year } td

Replies: 4 comments 3 replies

Comment options

You must be logged in to vote
2 replies
@mabvmex
Comment options

@Anthonyah131
Comment options

Comment options

You must be logged in to vote
1 reply
@mabvmex
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by mabvmex
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants