scripting@wanadoo.nl




Month()

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
25 March 2002 Month()
AuthorScriptLogic Corporation
Action Returns the month portion of a specific date.
SyntaxMonth ("date") 
Parameters
  • date (Required / String) must be in the form of "YYYY/MM/DD" 
  • RemarksAbout as simple as it gets... Mainly developed since we are used to this function with other languages. In the future, we plan to add more parsing logic to handle date parameters in different orders (such as 4/1/2001). 
    ReturnsReturns the day portion of a specific date. If working with today's date, this function is not necessary since you could use the @DAY macro. 
    DependenciesNone. 
    Examples
    $themonth=Month("2001/04/01")
    
     
    Source
    FUNCTION Month ($expd)
      ;when passed a date "yyyy/mm/dd" this function returns the numeric month
      $month=Val(Substr($expd,6,2))
    ENDFUNCTION ; - Month -
     
      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