I have a foxpro code as below.
If the dXFactory= 2010-01-08 00:00:00.000 I need to get my output as 2010 January
Can anyone please help me to get this?
Thank you
Code:
stra="SELECT cSggNo, cInvNo, cProdFty , cGMTName, cHTSCode ,SUM(nInvQty) as nInvQty,dXFactory,cGrnNumber from MIS.dbo.vInvFinal where dXFactory >= ?thisform.txtFromDate.Value AND dXFactory <= ?thisform.txtToDate.Value "
stra=stra+" AND cSggNo IS NOT NULL and cGrnNumber IS NOT NULL group by cSggNo,cInvNo,cProdFty,cGMTName,cHTSCode,dXFactory,cGrnNumber "
SQLEXEC(hndOps,stra,'SGG_GRN')
_YearMonth=**here i ned to create a variable to get month and year form [b]dXFactory[/b]***
If the dXFactory= 2010-01-08 00:00:00.000 I need to get my output as 2010 January
Can anyone please help me to get this?
Thank you