I am using crystal reports v10 and need to try to convert this formula from showing the past 24 hrs to a month to date formula ( showing from 00:00:01 on the 1st of the month thru 23:59:59 on the last day of the month). Can someone help me out ?
DTSToDateTime(tzcvtConvToLocalDatetimeByName(ToText(DateTime({PROBLEM.OPEN_DATE},{PROBLEM.OPEN_TIME}),"MM/dd/yyyy hh:mm tt"),"Eastern Standard Time"))
In DateTime (totext (Date(DateAdd ("d",-1,Cdate(year(CurrentDate),month(CurrentDate),day(currentdate))))) & " 00:00:01")
To DateTime (totext (Date(DateAdd ("d",-1,Cdate(year(CurrentDate),month(CurrentDate),day(currentdate))))) & " 23:59:59")
DTSToDateTime(tzcvtConvToLocalDatetimeByName(ToText(DateTime({PROBLEM.OPEN_DATE},{PROBLEM.OPEN_TIME}),"MM/dd/yyyy hh:mm tt"),"Eastern Standard Time"))
In DateTime (totext (Date(DateAdd ("d",-1,Cdate(year(CurrentDate),month(CurrentDate),day(currentdate))))) & " 00:00:01")
To DateTime (totext (Date(DateAdd ("d",-1,Cdate(year(CurrentDate),month(CurrentDate),day(currentdate))))) & " 23:59:59")