CalendarXP.net Support Forum Index CalendarXP.net Support
Most forums here are private and invisible to public.
 
 FAQFAQ   SearchSearch   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Date-Time Formatting

 
Post new topic   Reply to topic    CalendarXP.net Support Forum Index -> PopCalendarXP Related
View previous topic :: View next topic  
Author Message
njpmr



Joined: 28 Feb 2010
Posts: 24

PostPosted: Thu Mar 04, 2010 11:44 am    Post subject: Date-Time Formatting Reply with quote

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
View user's profile Send private message
njpmr



Joined: 28 Feb 2010
Posts: 24

PostPosted: Sun Mar 14, 2010 1:32 pm    Post subject: Reply with quote

Sure, I can help you with that, its easy with calendarXP Smile

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    CalendarXP.net Support Forum Index -> PopCalendarXP Related All times are GMT
Page 1 of 1

 
Jump to:  
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