var d1 = $filter('date')(
            new Date(),
            "yyyy-MM-dd T00:00:00 Z ");

On Friday, 5 July 2013 07:47:06 UTC+5:30, skumar mohan wrote:
>
> I am using AngularStrap Bootstrap Directive for DatePicker as follows: 
>
> <input type="text" ng-model="startDate" data-date-format="dd/mm/yyyy" 
> bs-datepicker>
> <button type="button" class="btn" data-toggle="datepicker"><i 
> class="icon-calendar"></i></button>
> I am saving this data to json file, but I get date in this format "Sat Jul 
> 20 2013 05:30:00 GMT+0530 (India Standard Time)"
> How do I get date in this required format "2013-07-20T00:00:00.000Z" ??
>

-- 
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/d/optout.

Reply via email to