- Mark as New
- Follow
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report
I am trying this, but, cannot reset local time, laptop is locked:
var today = new Date();
var dd = today.getDate();
if (dd == 1 || dd == 21 || dd == 31) {
this.rawValue = dd + "st";
}
else if (dd == 2 || dd == 22) {
this.rawValue = dd + "nd";
}
else if (dd == 3 || dd == 23) {
this.rawValue = dd + "rd";
}
else if (dd == 4 || dd == 5 || dd == 6 || dd == 7 || dd == 8 || dd == 9 || dd == 10 || dd == 11 || dd == 12 || dd == 13 || dd == 14 || dd == 15 || dd == 16 || dd == 17 || dd == 18 || dd == 19 || dd == 20 || dd == 24 || dd == 25 || dd == 26 || dd == 27 || dd == 28 || dd == 29 || dd == 30) {
this.rawValue = dd + "th";
}
Do you think this will work?
Views
Replies
0 Likes
Total Likes