scripting@wanadoo.nl




VerboseDate()

http://www.scriptlogic.com/kixtart/FunctionLibrary_FunctionList.aspx


actual FunctionLibrary list on 'Scriptlogic' site printer-friendly mirror of UDF topic on 'scripting@wanadoo.nl' site close
26 March 2002 VerboseDate()
AuthorScriptLogic Corporation
Action Returns a verbose representation of a specific date. Example: "April 1st, 2001".
SyntaxVerboseDate ("date") 
Parameters
  • date (Required / String) must be in the form of "YYYY/MM/DD" 
  • RemarksEasily internationalized, simply by manipulating the elements of the $MonthNames array within the function. 
    ReturnsA verbose representation (string) of the date passed to this function. 
    DependenciesOrdinal() 
    Examples
    ?"Good day, Welcome to the ACME Network."
    ?"Today is "+VerboseDate(@Date)
    
     
    Source
    FUNCTION VerboseDate ($expd)
      ; accepts a date "yyyy/mm/dd" and returns "mmmmmmmm dd, yyyy".
    
      DIM $y,$m,$d,$month,$monthnames[13]
      $y=Val(Substr($expd,1,4))
      $m=Val(Substr($expd,6,2))
      $d=Val(Substr($expd,9,2))
      $monthnames='0','January','February','March','April','May','June',
            'July','August','September','October','November','December'
      $month=$monthnames[$m]
      $verbosedate='$month '+ordinal($d)+', $y'
    ENDFUNCTION ; - VerboseDate -
     
      original source of UDF topic. show actual FunctionLibrary list on Scriptlogic site close top
              printer-friendly mirror of UDF topic on scripting@wanadoo.nl site  




    Copyright © 2003 www.scriptlogic.com & scripting@wanadoo.nl - last updated on 20 May 2003


    Site Meter