Class PTDateUtil
Object
   |
   +--PTDateUtil
   
   - class 
   PTDateUtil
   
 
   
   
   
Static class containing date utility methods.
 
Usage:	
 	PTDateUtil.isSameDay(date1, date2)
 
Defined in PTUtil.js
   
   
   
   
      
         
            | 
               Field Summary | 
         
   
   
   
   
   <static>  <final> Object | 
   VERSION
    
              | 
   
   
   
    
   
   
| 
Constructor Summary | 
   
      
	 
	    PTDateUtil 
	 
	 ()
      
       
                 
      PTDateUtil static object constructor
       | 
 
| 
Method Summary | 
   
      
	 
	    <static> String
	 
       | 
      
	 
	    
	       formatTime(sTime, iMode)
	 
	  
	           
	 Formats a date into a time format
       | 
   
   
      
	 
	    <static> Number
	 
       | 
      
	 
	    
	       getDaysBetweenDates(date1, date2)
	 
	  
	           
	 Returns the number of days between the two dates.
       | 
   
   
      
	 
	    <static> Boolean
	 
       | 
      
	 
	    
	       isSameDay(date1, date2)
	 
	  
	           
	 Determine if 2 datetimes occur on the same day
       | 
   
   
      
	 
	    <static> Boolean
	 
       | 
      
	 
	    
	       validateDate(strDay, strMonth, strYear)
	 
	  
	           
	 Validates a date string
       | 
   
   
   
   
   
   VERSION
   <static> <final> Object VERSION
   
   
   
    
PTDateUtil
PTDateUtil()
   PTDateUtil static object constructor
   
   
   Returns:
     
     New PTDateUtil object.  Author Legacy Code   
     
   
   
   formatTime
   <static> String formatTime(sTime, iMode)
   
      Formats a date into a time format
   
   
   
   
   Parameters:
   
      
   
     iMode -  24-hour mode, 0 = 24-hour, 1 = 12-hour  
      
 
   
   
   
   
   
   
   Returns:
        
        a formatted date/time String   
        
   
   
   
   
      
   Deprecated Use PTDate.format() instead.  
   
   
   
   
   getDaysBetweenDates
   <static> Number getDaysBetweenDates(date1, date2)
   
      Returns the number of days between the two dates.  Hours are normalized to noon.
   
   
   
   
   Parameters:
   
      
   
     date2 -  another date (Date)  
      
 
   
   
   
   
   
   
   
   
   
   
   
   isSameDay
   <static> Boolean isSameDay(date1, date2)
   
      Determine if 2 datetimes occur on the same day
   
   
   
   
   Parameters:
   
      
   
     date2 -  another date (Date)  
      
 
   
   
   
   
   
   
   Returns:
        
        true if the dates occur on the same day   
        
   
   
   
   
   
   
   validateDate
   <static> Boolean validateDate(strDay, strMonth, strYear)
   
      
   
   
   
   
   Parameters:
   
     strDay -  Day of the month (string)  
      
 
   
     strMonth -  Month of the year (string)  
      
 
   
      
   
   
   
   
   
   
   Returns:
        
        true if the arguments form a valid date   
        
   
   
   
   
      
   Deprecated Use PTDateValidator instead.  
   
   
   
Documentation generated by 
JSDoc on Wed Aug 24 10:17:38 2005