User Tools

Site Tools


syntax:functions:weekdayname

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
syntax:functions:weekdayname [2018/08/22 17:07] dmitrysyntax:functions:weekdayname [2021/09/09 16:12] (current) – [See also] craigt
Line 1: Line 1:
-===== WeekDayName(date_as_number) =====+====== WeekdayName(date) =====
 +Category:  Date and Time function
  
-Extracts the corresponding day of the the week, from "Sun" for Sunday to "Sat" for Saturday.+\\  
 +=====Description===== 
 +This function returns the abbreviated name of the day //date// falls on.
  
- Example   Result  ^  +\\  
-weekdayname(42097  Fri    +=====Arguments===== 
-weekdayname(#2018-08-22)  |  Wed  |+^Argument^Type^Description
 +|date|Date or Number (date serial)|An expression representing a date to derive the weekday name from.| 
 + 
 +**Return value type:** Text (Sun, Mon, Tue, Wed, Thu, Fri, Sat) 
 + 
 +\\  
 +=====Remarks===== 
 +The //date// argument can take any value or expression that evaluates to a date serial value.  Examples include:   
 +  * A date string:  #2019-12-12 
 +  * A date serial value: 43811 (the date serial for "2019-12-12"
 +  * A date value created using any of the Date/Time functions that returns a date serial value. 
 + 
 +\\  
 +=====Examples===== 
 + 
 +  weekdayname(44448)  //Returns 'Thu' (44448 represents 2021-09-09) 
 + 
 +  weekdayname(#1910-05-01)  //Returns 'Sun' 
 + 
 +\\  
 +=====See also===== 
 +  * [[syntax:functions:isoweeknumber|ISOWeekNumber(date)]] 
 +  * [[syntax:functions:isweekend|IsWeekend(date)]] 
 +  * [[syntax:functions:weekday|Weekday(date)]] 
 +  * [[syntax:functions:weekend|WeekEnd(date)]] 
 +  * [[syntax:functions:weekstart|WeekStart(date)]]
  
-=== See also: === 
-  * [[syntax:functions:weekday]] 
-  * [[syntax:functions:year]] 
-  * [[syntax:functions:month]] 
-  * [[syntax:functions:day]] 
-  * [[syntax:functions:makedate]] 
syntax/functions/weekdayname.1534972035.txt.gz · Last modified: 2018/08/22 17:07 by dmitry

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki