Quantcast
Channel: ASPRunner forums
Viewing all articles
Browse latest Browse all 2586

Auto Fill Week End Date, Adding days to existing date

$
0
0
I am trying to get my "add page" to calculate 7 days after the start date. The start date would be the first day to the week and the end date would be the last day of the week (Sunday - Saturday).

I have a table that has the following Fields

TableName: Planner

Fields
PlannerID (AI, Primary)
SaleNumber (VARCHAR)
DateStr (DATE)
DateEnd (DATE)
Active (INT)

I was trying to use the following below snippet in the php snippet tool in Visual Editor for the "Default value" and "AutoUpdate value" for Field "DateEnd" to calculate the End of Week Date

$values['DateEnd'] = $values['DateStr'] + '7';



Posted Image

Viewing all articles
Browse latest Browse all 2586

Latest Images

Trending Articles



Latest Images