This topic is locked

British Date Format

10/16/2019 11:28:39 AM
ASPRunner.NET General questions
J
jetsguy author

Has anyone have any advice on how to allow British Date Formats for Date entry? For example to allow a user to enter 30/12/2019 as opposed to 12/30/2019? Any help very much appreciated.

Sergey Kornilov admin 10/16/2019

I think your best bet is to use Date Edit control represented as dropdowns with day, month and year.

J
jetsguy author 10/16/2019



I think your best bet is to use Date Edit control represented as dropdowns with day, month and year.


Thanks and this might sound crazy but i'll ask it anyway. Can I change the input field format depending upon what user is logged in?

Sergey Kornilov admin 10/16/2019

Unfortunately, this is something that ASPRunner.NET doesn't know how to do.

J
jetsguy author 10/16/2019

Right. Thanks. I was wondering if anyone has come across this issue and perhaps has coded around it or found some

Other solutions. I'm going to have to think outside the native asprunner box on this one.

J
jetsguy author 10/17/2019



Right. Thanks. I was wondering if anyone has come across this issue and perhaps has coded around it or found some

Other solutions. I'm going to have to think outside the native asprunner box on this one.


Ask I wonder if it can be set in regional settings on the IIS server? Hmmm

jadachDevClub member 10/17/2019

If you have a list of users, can you identify what date format each user would use? If so, perhaps a case statement converting the date field appropriately by who added or edited the record. Just a thought.

J
jetsguy author 10/17/2019



If you have a list of users, can you identify what date format each user would use? If so, perhaps a case statement converting the date field appropriately by who added or edited the record. Just a thought.


That sounds good. I suppose I'll just use a session variable as a flag of whether I want US vs UK date formats. The hard part is how can you change the date format of the simple date edit box via code at runtime?

jadachDevClub member 10/17/2019



That sounds good. I suppose I'll just use a session variable as a flag of whether I want US vs UK date formats. The hard part is how can you change the date format of the simple date edit box via code at runtime?


Assuming you are using v.10+, Create a second add page. Depending on who logs in will determine what add page they will get.