system date format
-
I have developed a program with too many date fields. I have used datetimepicker for this with formating dd/MM/yyyy. This will create problem if any user have system date format in m/d/yyyy So I want that when my program start it will detect system date format and if format is in m/d/yyyy then it converts into mm/DD/yyyy and at the time of closing my program it converts into it's original format. If any one have any code in support of this problem, please send me immediatly. Thanks Pathak
-
I have developed a program with too many date fields. I have used datetimepicker for this with formating dd/MM/yyyy. This will create problem if any user have system date format in m/d/yyyy So I want that when my program start it will detect system date format and if format is in m/d/yyyy then it converts into mm/DD/yyyy and at the time of closing my program it converts into it's original format. If any one have any code in support of this problem, please send me immediatly. Thanks Pathak
hiiiiiiii..,, why are u trying to change the system date format, change your datetimepicker format to system format. use below code Format(DateTimePicker4.Value, "yyMMdd") thanks Bye..
Rajesh B --> A Poor Workman Blames His Tools <--
-
hiiiiiiii..,, why are u trying to change the system date format, change your datetimepicker format to system format. use below code Format(DateTimePicker4.Value, "yyMMdd") thanks Bye..
Rajesh B --> A Poor Workman Blames His Tools <--
If any user have date format in dd/MM/yyyy then I save 08/04/2008, it saved same and displayed in same format. but if he changed his format in m/d/yyyy and i give 08/04/2008 then when we retrive date it shows lik 04/08/2008. And if use format here then it creates problem with dd/MM/yyyy format.
-
If any user have date format in dd/MM/yyyy then I save 08/04/2008, it saved same and displayed in same format. but if he changed his format in m/d/yyyy and i give 08/04/2008 then when we retrive date it shows lik 04/08/2008. And if use format here then it creates problem with dd/MM/yyyy format.
-
If any user have date format in dd/MM/yyyy then I save 08/04/2008, it saved same and displayed in same format. but if he changed his format in m/d/yyyy and i give 08/04/2008 then when we retrive date it shows lik 04/08/2008. And if use format here then it creates problem with dd/MM/yyyy format.
As darklev pointed out, your base error is if you are storing your dates as a string. If you are using a database then you MUST use the date data type to store your data. If you persist in using a string to store the date your will never be free of the formating problem.