|
CalendarXP.net Support Most forums here are private and invisible to public.
|
View previous topic :: View next topic |
Author |
Message |
njpmr
Joined: 28 Feb 2010 Posts: 24
|
Posted: Thu Mar 04, 2010 11:44 am Post subject: Date-Time Formatting |
|
|
I saw the sticky on formatting the date such as Wednesday, March 3, 2010. I tried to append the time to that but was not very successful.
Ex Wednesday, March 3, 2010 10:45 PM
Can you please show me the correct formatting?
Thanks
|
|
Back to top |
|
|
njpmr
Joined: 28 Feb 2010 Posts: 24
|
Posted: Sun Mar 14, 2010 1:32 pm Post subject: |
|
|
Sure, I can help you with that, its easy with calendarXP
Code: |
function fFormatInput(y,m,d) {
if (gbHideCalMiddle)
return _timeVal;
else
var str=fFormatDate(y,m,d).split(gsSplit);
var d=new Date(y,m-1,d).getDay();
var wd=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"];
return wd[d]+" / "+str[0]+" "+str[1]+", "+str[2]+_separator_datetime+_timeVal;
} |
also make sure giMonthMode=1 and the date will be formatted like Sunday / March 14, 2010 / 08:45 AM
|
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You cannot download files in this forum
|
Copyright 2003- Idemfactor Solutions, Inc. All rights reserved.
Powered by phpBB © 2001, 2005 phpBB Group
|