Hello,

I want to display the current time. So I use the date filter on a Date 
instance:

{{new Date() | date:'yyyy-MM-dd HH:mm:ss Z'}}

But this gives me as output {{new Date() | date:'yyyy-MM-dd HH:mm:ss Z'}}   
 

FireBug console shows:

Error: [$parse:syntax] Syntax Error: Token 'Date' is an unexpected token at 
column 5 of the expression [new Date() | date:'yyyy-MM-dd HH:mm:ss Z'] starting 
at [Date() | date:'yyyy-MM-dd HH:mm:ss Z'].


Can't I use a Date object as input for the Date filter????

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to