system.js.Date is a java-script Date object. it shows client-side date. java.util.Date shows local server date. if you are using java-script date the client-side may be right / wrong we can't decide. that's better to use in all web-applications java.util.Date. it shows our server date all our clients.
if you want to parse date in java-script it must be in the format of 'yyyy-MM-dd' otherwise it shows wrong date.
Ex : var d = new Date('1991-09-15');
The string now converted to date object.
if you want to parse date in java-script it must be in the format of 'yyyy-MM-dd' otherwise it shows wrong date.
Ex : var d = new Date('1991-09-15');
The string now converted to date object.
No comments:
Post a Comment