function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
bev90210bev90210 

Capture Date Time format in Javascript or VF page

Hi there,
 
Hope all is well VF dev team and developers!
 
I was hoping you guys could assist me in determining what the date/time format is used on the particular SFDC instance.
 
For example, on my instance (like many) dates are in the M/DD/YYYY format, I would like to know this so that I can parse the month or day and it be a global function that works with Canadian and those pesky Euro instances where the date/time format is no doubt different.
 
Is there a "{$x.xxx}" value I could pull in my VF page or maybe a function within the SFDC js files that can return such a format?
 
Any help here would be greatly appreciated as always.