You need to sign in to do that
Don't have an account?
Radhe Shyam.
need to Save Date in string format like 2017-09-22(yyyy-mm-dd)
Hi All,
I am using datepicker on vf page where i am picking date and saving this in text field.
this date is being saved like 8/25/2017 (mm-dd-yyyy), but i want to save this like 2017-08-25 to use further in dynamic soql query.
Could any one please help me on this.
-Radhe S
I am using datepicker on vf page where i am picking date and saving this in text field.
this date is being saved like 8/25/2017 (mm-dd-yyyy), but i want to save this like 2017-08-25 to use further in dynamic soql query.
Could any one please help me on this.
-Radhe S
datetime thisDT = system.now();
String myDate = thisDT.format('yyyy/mm/dd');
system.debug(myDate);
Follow the below code. Screenshot:
Hope it helps you!
Regards,
Akshay