This is a migrated thread and some comments may be shown as answers.
Clientside DateFormat on the calendar
2 Answers 31 Views
This is a migrated thread and some comments may be shown as answers.
Steve
Top achievements
Rank 2
Steve asked on 17 May 2010, 08:15 PM
How do I transform
var day = args.get_renderDay().get_date(); 

to be "MMMM dd, yyyy"?

2 Answers, 1 is accepted

Sort by
0
Accepted
Princy
Top achievements
Rank 1
answered on 18 May 2010, 08:37 AM
Hello Steve,

Here is the client code that I tried to tranform the date in tripplet format to different format.

Client code:
 
    var day = args.get_renderDay().get_date();   
    my_date = new Date(); // Date  
    my_date.setYear(day[0]);  
    my_date.setMonth(day[1]-1);  
    my_date.setDate(day[2]);  
    alert(my_date.format("MMMM/dd/yyyy")); 

Regards,
Princy.
0
Brown
Top achievements
Rank 1
answered on 06 Jan 2011, 08:04 PM
Hi Princy,
 Thanks i tried for this....can you explain how it works?......
Asked by
Steve
Top achievements
Rank 2
Answers by
Princy
Top achievements
Rank 1
Brown
Top achievements
Rank 1
Share this question
or