Support Forum Softcomplex logo
About Us  | Services  | Download  | Order  | Support  | |
| Search | Today's Posts | Stats | Board Rules | Not logged in [ Login | Register ]
go to bottom
Last active: Never

Printable Version | Subscribe | Add to Favourites   Post new thread
Author: Subject: Date Format
monkeybidz
Junior Member

Posts: 5
Registered: 11/3/2007
Location: Pico Rivera USA
Member Is Offline
posted on 11/3/2007 at 11:12 PM Reply With Quote
Date Format


I am using Version: 3.2
I saw many postings on changing date format to USA format. currently date shows yyyy/mm/dd

How can I change it to show mm/dd/yyyy?
View User's Profile View All Posts By User U2U Member
monkeybidz
Junior Member

Posts: 5
Registered: 11/3/2007
Location: Pico Rivera USA
Member Is Offline
posted on 11/4/2007 at 01:41 AM Reply With Quote

I got it. I changed the following code in calendar.js:

Code:

// date generating function
function xar_base_calendar_gen_date (dt_datetime) {
return (
dt_datetime.getFullYear() + "-"
+ (dt_datetime.getMonth() < 9 ? '0' : '') + (dt_datetime.getMonth() + 1) + "-"
+ (dt_datetime.getDate() < 10 ? '0' : '') + dt_datetime.getDate()
);
}


to

Code:

// date generating function
function xar_base_calendar_gen_date (dt_datetime) {
return (
dt_datetime.getMonth() < 9 ? '0' : '' + (dt_datetime.getMonth() + 1) + "/"
+ (dt_datetime.getDate() < 10 ? '0' : '') + dt_datetime.getDate() + "/"
+ (dt_datetime.getFullYear())
);
}
View User's Profile View All Posts By User U2U Member
Post new thread

Related Links:
Product Page
Product Demonstrations Live Demos
Free Download Free Download
Product Documentation Documentation
Support Forum Support Forum
 

Go To Top


Powered by XMB 1.9.1 Nexus
Developed By Aventure Media & The XMB Group © 2002-2004