home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Monster Media 1994 #1
/
monster.zip
/
monster
/
CLIPPER
/
NCCLIB.ZIP
/
NCCCODE.ZIP
/
MONTHBEG.PRG
< prev
next >
Wrap
Text File
|
1992-11-04
|
994b
|
34 lines
//═══════════════════════════════════════════════════════╕
// Program .....: Monthbeg │
// CopyRight ...: 1992 National Computer Consultants │
// All rights are reserved. │
// Author ......: Greg Rice │
//═══════════════════════════════════════════════════════╛
//───────────────────────────────────────┐
// Function...: MonthBeg() │
// Syntax.....: x = MonthBeg(<exp>) │
// <exp> - Date or month │
// <D> <N> │
// ......... Finds First date for month │
//───────────────────────────────────────┘
Function MonthBeg( xDate )
local xMonth, xYear, ret_val
if valtype(xDate) == 'N'
xMonth := xDate
xYear := Year(Date())
else
xMonth := Month(xDate)
xYear := Year(xDate)
Endif
ret_val := ctod(str(xMonth,2,0) + "/01/" + str(xYear,4,0))
Return( ret_val )