none
Date format Change RRS feed

  • Question

  • Hi All

    Is there any way to give access to end users only to change Date format(from dd/mm/yyy to mm/dd/yyyy and vice versa). I don't want them to change the date just the date format.

    Regards

    Bharath

    Tuesday, August 25, 2015 1:35 AM

Answers

  • Hi,

    We have tried to change the folder permission in registry to test the issue in our machine. When we change the permission, we cannot change not only the date and time, but also cannot change the date format. I infer that the reason is the key value related date format and the key value related to date are in the same folder in registry by design. We can just change the permission for folder but not for the each key value.

    Here is path we found in registry:

    HKU\S-1-5-21-2482548532-232131044-2038585499-1003\Control Panel\International\sDate: "/"
    
    HKU\S-1-5-21-2482548532-232131044-2038585499-1003\Control Panel\International\sDate: "-"
    
    HKU\S-1-5-21-2482548532-232131044-2038585499-1003\Control Panel\International\sShortDate: "M/d/yyyy"
    
    HKU\S-1-5-21-2482548532-232131044-2038585499-1003\Control Panel\International\sShortDate: "yyyy-MM-dd"
    
    HKU\S-1-5-21-2482548532-232131044-2038585499-1003\Control Panel\International\iDate: "0"
    
    HKU\S-1-5-21-2482548532-232131044-2038585499-1003\Control Panel\International\iDate: "2"
    

    Wish you have a nice experience in Windows. 

    Best Regards

    Simon

    Monday, August 31, 2015 8:43 AM

All replies

  • Hi,

    We have tried to change the folder permission in registry to test the issue in our machine. When we change the permission, we cannot change not only the date and time, but also cannot change the date format. I infer that the reason is the key value related date format and the key value related to date are in the same folder in registry by design. We can just change the permission for folder but not for the each key value.

    Here is path we found in registry:

    HKU\S-1-5-21-2482548532-232131044-2038585499-1003\Control Panel\International\sDate: "/"
    
    HKU\S-1-5-21-2482548532-232131044-2038585499-1003\Control Panel\International\sDate: "-"
    
    HKU\S-1-5-21-2482548532-232131044-2038585499-1003\Control Panel\International\sShortDate: "M/d/yyyy"
    
    HKU\S-1-5-21-2482548532-232131044-2038585499-1003\Control Panel\International\sShortDate: "yyyy-MM-dd"
    
    HKU\S-1-5-21-2482548532-232131044-2038585499-1003\Control Panel\International\iDate: "0"
    
    HKU\S-1-5-21-2482548532-232131044-2038585499-1003\Control Panel\International\iDate: "2"
    

    Wish you have a nice experience in Windows. 

    Best Regards

    Simon

    Monday, August 31, 2015 8:43 AM
  • Need help for the below!!!!!!!!!!!

    To change the system date and time format through registry. Below settings is working fine in Win 8.1 and other OS version but not in Win 7 version. I try to do it manually into the registry by changing the below values but still the format is not reflected in the Date and Time.

    Also I noticed that when I change the format manually in the Short Time in the "Region And Language" it doesn't change in the Date and Time shown in task bar , but its working fine when I change it for Long Time format manually. As i see in Windows 7 OS, it takes long time format to display in the task bar Clock and ignoring the Short Time format.

    Is it because of any User level permissions required or anything settings to be enabled/disabled to change these values?.

    RegistryKey rkey = Registry.CurrentUser.OpenSubKey(@"Control Panel\International", true);
    rkey.SetValue("sShortDate", "dd/MM/yyyy");
    rkey.SetValue("sShortTime", "HH:mm");
    rkey.SetValue("sTimeFormat", "HH:mm");
    rkey.Close();

    PFB link for screenshots.

    https://1drv.ms/f/s!AremMyjuHHWzefsf1iECo_7ihN4

    Tuesday, December 4, 2018 1:34 PM