Click here to Skip to main content
15,907,687 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I have table Userfeature and Column name is date formate in table
If one user want to date format of dd/MM/YYYY and other want to MM/dd/yyyy,
how to fetch that format for user requirement and how to change format.
I am using Calender extender control in aspx file so how to get different format?

Please help me
Posted
Updated 7-Feb-11 20:27pm
v2

Ue the Calendar controls Format attribute: See here[^] for an example.
 
Share this answer
 
Dear friend
You will get formats for setting in calender extender

Use a radiobutton list and allow user to select the format and save it in session/viewstate/ any other place that you wish and change the format in code file

you can also use
toString("Format");
eg:
datetime.now.toString("dd/mm/yyyy");
for converting date to your required format
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900