tag:blogger.com,1999:blog-6153316952119053316.post3172695223397435334..comments2024-03-26T22:46:57.849-07:00Comments on Force School: Calculate Day of Date in SalesforceShashikant Sharmahttp://www.blogger.com/profile/02997738281464288687noreply@blogger.comBlogger16125tag:blogger.com,1999:blog-6153316952119053316.post-31012464418649419242022-01-11T11:25:35.751-08:002022-01-11T11:25:35.751-08:00Another way to do this (to get the numeric day of ...Another way to do this (to get the numeric day of week [0-6]):<br /><br />Date myDate = Date.today();<br />Integer myDOW = myDate.toStartofWeek().daysBetween(myDate);Anonymoushttps://www.blogger.com/profile/17036694894357830912noreply@blogger.comtag:blogger.com,1999:blog-6153316952119053316.post-87792077341351149602018-10-11T03:55:35.176-07:002018-10-11T03:55:35.176-07:00Yes your correct did you find any other approaches...Yes your correct did you find any other approaches to do this?Anonymoushttps://www.blogger.com/profile/03912354124699224593noreply@blogger.comtag:blogger.com,1999:blog-6153316952119053316.post-23758104508998880942017-03-08T11:08:17.446-08:002017-03-08T11:08:17.446-08:00This comment has been removed by the author.Venkateshhttps://www.blogger.com/profile/15599902975119289966noreply@blogger.comtag:blogger.com,1999:blog-6153316952119053316.post-75977846993257530312017-01-05T19:54:01.660-08:002017-01-05T19:54:01.660-08:00I need help on this below.
If the selected date is...I need help on this below.<br />If the selected date is saturday or sunday i need to show error.<br />Can any one help me on thisAnonymoushttps://www.blogger.com/profile/18444097132041676950noreply@blogger.comtag:blogger.com,1999:blog-6153316952119053316.post-90386641710426604062015-07-28T11:42:21.233-07:002015-07-28T11:42:21.233-07:00
hi, i want to hide multiple controlling picklist ...<br />hi, i want to hide multiple controlling picklist fields... for example: i have A,B,C picklist fields and A is controlling B, B controlling C. Now i want to hide both A and B picklist fields in VF page. I know to hide One Controlling picklist field but i am unable to hide Two fields(in case A and B). Please suggest me.Anonymoushttps://www.blogger.com/profile/03073819319906277121noreply@blogger.comtag:blogger.com,1999:blog-6153316952119053316.post-5624528936242142462015-07-27T04:51:21.512-07:002015-07-27T04:51:21.512-07:00hi,
I have a request which states that: i have on...hi,<br /><br />I have a request which states that: i have one pick list field in which one value selects then the other date field to be populate to one day and if that populating day is saturday then it should populate 3 days and if it is sunday then 2 days.<br /><br />please help me.Anonymoushttps://www.blogger.com/profile/03073819319906277121noreply@blogger.comtag:blogger.com,1999:blog-6153316952119053316.post-79915344429347200762014-10-13T06:30:02.779-07:002014-10-13T06:30:02.779-07:00thanksthanksAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-6153316952119053316.post-9789260405368325762014-09-08T16:48:18.335-07:002014-09-08T16:48:18.335-07:00Will doing the format('EEE') thing fail if...Will doing the format('EEE') thing fail if the app is run by someone using another language?Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-6153316952119053316.post-68963752650871222372013-11-04T05:40:36.787-08:002013-11-04T05:40:36.787-08:00This method will fail when using different user lo...This method will fail when using different user locales (i.e. the first day of the week is different for different Locale settings.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-6153316952119053316.post-63792928612355596002012-03-10T18:30:55.196-08:002012-03-10T18:30:55.196-08:00thanks for posting this. the Case approach worked ...thanks for posting this. the Case approach worked perfect!Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-6153316952119053316.post-34230320787782906402012-01-16T08:37:44.162-08:002012-01-16T08:37:44.162-08:00Figuring day of week helped me a lot! Thanks for a...Figuring day of week helped me a lot! Thanks for above MOD formula!DDeVeauxhttps://www.blogger.com/profile/01668604756414869820noreply@blogger.comtag:blogger.com,1999:blog-6153316952119053316.post-14674289992788894322011-06-10T04:37:21.036-07:002011-06-10T04:37:21.036-07:00@Gaurav thanks for this clarification ...@Gaurav thanks for this clarification ...sandeephttps://www.blogger.com/profile/09174853423219927915noreply@blogger.comtag:blogger.com,1999:blog-6153316952119053316.post-64313592825294576752011-06-09T03:25:02.715-07:002011-06-09T03:25:02.715-07:00Hi Sandeep,
Symbol "E" stands for Day i...Hi Sandeep,<br /><br />Symbol "E" stands for Day in week:<br />example<br />"EEE" -> "Tue"<br />"EEEE" -> "Tuesday"<br /><br />This is basically referred form java.text.SimpleDateFormat class <br /><br />The initialization is below: -<br />SimpleDateFormat format =<br /> new SimpleDateFormat("EEE MMM dd HH:mm:ss zzz yyyy");<br /><br />Let me know if you have any more queries. <br /><br />Thanks,<br />GauravGauravhttps://www.blogger.com/profile/02286905477558346055noreply@blogger.comtag:blogger.com,1999:blog-6153316952119053316.post-76415487541025372102011-06-08T22:36:34.109-07:002011-06-08T22:36:34.109-07:00Thanks Sir, I have implemented first one It is wor...Thanks Sir, I have implemented first one It is working fine really it is supportive approach. <br />Now My Question is what the "EEEE" is Stands for?sandeephttps://www.blogger.com/profile/09174853423219927915noreply@blogger.comtag:blogger.com,1999:blog-6153316952119053316.post-64413940533550012592011-06-07T07:47:59.478-07:002011-06-07T07:47:59.478-07:00@Gaurav
Yes, It worked fine :) , I have added this...@Gaurav<br />Yes, It worked fine :) , I have added this also in my post.Shashikant Sharmahttps://www.blogger.com/profile/02997738281464288687noreply@blogger.comtag:blogger.com,1999:blog-6153316952119053316.post-60079003387927930232011-06-07T02:57:30.359-07:002011-06-07T02:57:30.359-07:00Hi,
If we take a DateTime field we can get the Da...Hi,<br /><br />If we take a DateTime field we can get the Day in one line. See the below code, let me know if I am wrong.<br /><br />DateTime currentTime = system.now();<br /><br />system.debug('-------' + currentTime.format('EEEE'));<br /><br />Run this code and you will get the Day :)Gauravhttps://www.blogger.com/profile/02286905477558346055noreply@blogger.com