Jump to content
Salesforce and other SMB Solutions are coming soon. ×

Calculation Date, need help


NewbieHere

Recommended Posts

Hello all,

I have a field called PickUp date. It is in the form of a radio button set (Monday, Tuesday etc..). Now here's my problem. For example if today is Tuesday Febuary 12 2005, and a customer comes and ask's if he/she could pick up their order on Friday. All I would have to do is Check off Friday in my Radio boxes, and in another field get Friday Febuary 15 2005.

 

Is this possible, if so ho?

Thanxs a bunch

Link to comment
Share on other sites

Try:

 

cPickUpDate (calculation, result is Date) =

 

Let ( [

today = Get ( CurrentDate ) ;

start = today - DayofWeek ( today ) ;

pickday = ( Position ( "SuMoTuWeThFrSa" ; Left ( PickUp ; 2 ) ; 1 ; 1 ) + 1 ) / 2 ;

add = pickday

] ;

start + pickday + 7 * add

)

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.



×
×
  • Create New...

Important Information

Terms of Use