You need to sign in to do that
Don't have an account?

Date showing 1 day behind for some reason when using date.format('yyyy-dd-MM')
I must be missing something..
The date is always 1 day behind when formating like so:
datetime xDate = o.campaign_start_date__c; String xxDate = xDate.format('yyyy-dd-MM'); system.debug('sdate :' +xxDate);
I set the above field to 8/16/2011
and in debug it shows up as: 2011-15-08
Everytime I change it the debug value is shown as 1 day behind.. Im sure I could to +1, but could someone help me understand why this is happening?
Thanks!
Jacob Davis
This is campaign_start_date__c datetime field . And your users time zone must be such that GMT - some hours, so that GMT Offset makes a day less.
Try this
All Answers
This is campaign_start_date__c datetime field . And your users time zone must be such that GMT - some hours, so that GMT Offset makes a day less.
Try this
Thanks Shashikant!
Sorry, I forgot to follow up and let you know this worked for me. This was probably much better method that just adding a day to the current date.
Thanks!
Your welcome mate
I will try this on my website Gyani Guruji (https://gyaniguruji.in)
https://sattakingnew.in/
https://sattakingnew.in/up-rajkot-satta.php
https://sattakingnew.in/black-satta-result.php
https://sattakingnew.in/online-satta-king.php
https://sattakingnew.in/desawar-gali-satta-king.php
http://sattakingnew.in/
http://sattakingnew.in/up-rajkot-satta.php
http://sattakingnew.in/black-satta-result.php
http://sattakingnew.in/online-satta-king.php
http://sattakingnew.in/desawar-gali-satta-king.php
Hey i think your answer can be solved by visiting here Powerdirector mod apk (https://freeapkhub.com/powerdirector-pro-apk/)
or from here tinder gold apk (https://freeapkhub.com/tinder-gold-apk/)