Questions tagged [culture]

Culture is the combination of language and peculiarities of geographical location (like en-UK, en-US, de-AT, de-DE, fr-BE)

Culture is the combination of language and peculiarities of geographical location (like en-GB, en-US, de-AT, de-DE, fr-BE)

815 questions
-2
votes
2 answers

c#.net String To Date Time

suppose i have a string date = "30-10-2018 15:00:00" how can i save it a datetime variable depending on pc region and time settings This is what I got so far: DateTime evtd; try { switch (cmbDateType.SelectedIndex) { case 1: …
sushil.agarwal
  • 151
  • 1
  • 9
-2
votes
1 answer

Updating culture short time pattern format not getting in DateTime.now

System.Threading.Thread.CurrentThread.CurrentCulture.DateTimeFormat.ShortDatePattern="DD/MM/YYYY"; System.Threading.Thread.CurrentThread.CurrentCulture.DateTimeFormat.ShortTimePattern ="hh:mm tt"; I am overriding the Date and time format for a…
-2
votes
3 answers

How get full short date by culture

this code return to me 'M/d/yyyy' but I need 'mm/dd/yyyy' how do this? ((CultureInfo)Session["culture"]).DateTimeFormat.ShortDatePattern)
Mediator
  • 14,951
  • 35
  • 113
  • 191
-3
votes
1 answer

List to List in asp net core

I want to set list cultureinfo in startup from database with query , please help me , how can i do that? My Query public IEnumerable GetListLanguagesTypes() { var cul = (from n in _context.Language select…
-3
votes
1 answer

date format using CultureInfo wont work

I am trying to change the default date format by the way below but the format wont change and there is no errors I am excepting to get date in Arabic format. What I am getting now is the default system format date like this (12:00:00 03/01/2011)…
sam
  • 2,493
  • 6
  • 38
  • 73
1 2 3
54
55