JuanSanchez
Programmer
I'm trying to generate a weekending date from a date pulled from a ms sql databse. This is very sparse but I dont do alot of math functions. Here's what I have....
<cfquery name="WE" datasource="payroll" username="abc" password="123">
select subcutoff from TblDistricts where rr = '10'
</cfquery>
<cfoutput query="WE">
<cfset weekending1=#subcutoff# + 6>
</cfoutput>
I need to get the next 2 week endings and the week ends on a saturday for our work purposes #Subcutoff# will always be a monday and that is the date that gets changed in the database. so right no that date is 11/13/00 3:15:00 PM its in odbc format, for the web page the time is not important.
I need to create a dropdown with the new week endings so when a work order is requested they can pick the current week ending or the next week ending for the order to be completed by. I hope that wasn't to long winded.
Thanks in advance,
Jon Warner
<cfquery name="WE" datasource="payroll" username="abc" password="123">
select subcutoff from TblDistricts where rr = '10'
</cfquery>
<cfoutput query="WE">
<cfset weekending1=#subcutoff# + 6>
</cfoutput>
I need to get the next 2 week endings and the week ends on a saturday for our work purposes #Subcutoff# will always be a monday and that is the date that gets changed in the database. so right no that date is 11/13/00 3:15:00 PM its in odbc format, for the web page the time is not important.
I need to create a dropdown with the new week endings so when a work order is requested they can pick the current week ending or the next week ending for the order to be completed by. I hope that wasn't to long winded.
Thanks in advance,
Jon Warner