Click here to Skip to main content
15,888,908 members
Home / Discussions / C#
   

C#

 
GeneralRe: Determining if a time zone is currently in Daylight Saving Time Pin
Richard Deeming10-Feb-17 9:24
mveRichard Deeming10-Feb-17 9:24 
AnswerRe: Determining if a time zone is currently in Daylight Saving Time Pin
Gerry Schmitz9-Feb-17 22:22
mveGerry Schmitz9-Feb-17 22:22 
GeneralRe: Determining if a time zone is currently in Daylight Saving Time Pin
TNCaver10-Feb-17 9:26
TNCaver10-Feb-17 9:26 
AnswerRe: Determining if a time zone is currently in Daylight Saving Time Pin
Richard Deeming10-Feb-17 2:34
mveRichard Deeming10-Feb-17 2:34 
GeneralRe: Determining if a time zone is currently in Daylight Saving Time Pin
TNCaver10-Feb-17 9:24
TNCaver10-Feb-17 9:24 
QuestionAndroid Day of Week Calculator Pin
Pavlex49-Feb-17 9:14
Pavlex49-Feb-17 9:14 
AnswerRe: Android Day of Week Calculator Pin
NotPolitcallyCorrect9-Feb-17 9:47
NotPolitcallyCorrect9-Feb-17 9:47 
AnswerRe: Android Day of Week Calculator Pin
Eddy Vluggen9-Feb-17 10:50
professionalEddy Vluggen9-Feb-17 10:50 
Pavlex4 wrote:

if (spinner2.getSelectedItemPosition() == 0)
value = 1;
if (spinner2.getSelectedItemPosition() == 1)
value = 2;
if (spinner2.getSelectedItemPosition() == 2)
value = 3;
if (spinner2.getSelectedItemPosition() == 3)
value = 4;
if (spinner2.getSelectedItemPosition() == 4)
value = 5;
if (spinner2.getSelectedItemPosition() == 5)
value = 6;
if (spinner2.getSelectedItemPosition() == 6)
value = 7;
if (spinner2.getSelectedItemPosition() == 7)
value = 8;
if (spinner2.getSelectedItemPosition() == 8)
value = 9;
if (spinner2.getSelectedItemPosition() == 9)
value = 10;
if (spinner2.getSelectedItemPosition() == 10)
value = 11;
if (spinner2.getSelectedItemPosition() == 11)
value = 12;

value = spinner2.getSelectedItemPosition() + 1;


Pavlex4 wrote:
if (h == 0)
{
dayOfWeek = "Subota";
}
else if (h == 1)
{
dayOfWeek = "Nedelja";
}
else if (h == 2)
{
dayOfWeek = "Ponedeljak";
}
else if (h == 3)
{
dayOfWeek = "Utorak";
}
else if (h == 4)
{
dayOfWeek = "Sreda";
}
else if (h == 5)
{
dayOfWeek = "Četvrtak";
}
else
dayOfWeek = "Petak";
Please, put those in an array and fetch it by index.

Since the method is static, and assuming it does work like C#, I'd reckon that the 'date' variable is null. Which could happen if you were to swallow a parse-exception, for instance.
Bastard Programmer from Hell Suspicious | :suss:
If you can't read my code, try converting it here[^]

AnswerRe: Android Day of Week Calculator Pin
Richard MacCutchan9-Feb-17 21:02
mveRichard MacCutchan9-Feb-17 21:02 
AnswerRe: Android Day of Week Calculator Pin
Gerry Schmitz10-Feb-17 12:55
mveGerry Schmitz10-Feb-17 12:55 
QuestionChange the height PopupMenu ? Pin
Member 24584678-Feb-17 17:58
Member 24584678-Feb-17 17:58 
AnswerRe: Change the height PopupMenu ? Pin
Mycroft Holmes8-Feb-17 20:15
professionalMycroft Holmes8-Feb-17 20:15 
QuestionWCF Transport Security And SSL Pin
Liagapi8-Feb-17 17:34
Liagapi8-Feb-17 17:34 
AnswerRe: WCF Transport Security And SSL Pin
Richard Deeming8-Feb-17 22:06
mveRichard Deeming8-Feb-17 22:06 
QuestionC# : In a Powerpoint slide, Unable to set Play Full Screen / Start Automatically of a Video (Shape) object Pin
svpmirashi8-Feb-17 1:51
svpmirashi8-Feb-17 1:51 
AnswerRe: C# : In a Powerpoint slide, Unable to set Play Full Screen / Start Automatically of a Video (Shape) object Pin
Gerry Schmitz9-Feb-17 7:53
mveGerry Schmitz9-Feb-17 7:53 
GeneralRe: C# : In a Powerpoint slide, Unable to set Play Full Screen / Start Automatically of a Video (Shape) object Pin
svpmirashi9-Feb-17 20:48
svpmirashi9-Feb-17 20:48 
GeneralRe: C# : In a Powerpoint slide, Unable to set Play Full Screen / Start Automatically of a Video (Shape) object Pin
Gerry Schmitz9-Feb-17 21:17
mveGerry Schmitz9-Feb-17 21:17 
GeneralRe: C# : In a Powerpoint slide, Unable to set Play Full Screen / Start Automatically of a Video (Shape) object Pin
svpmirashi9-Feb-17 20:50
svpmirashi9-Feb-17 20:50 
GeneralRe: C# : In a Powerpoint slide, Unable to set Play Full Screen / Start Automatically of a Video (Shape) object Pin
Gerry Schmitz9-Feb-17 21:20
mveGerry Schmitz9-Feb-17 21:20 
Question(C#) How to make this kind of design and functions Pin
JeezyWonder7-Feb-17 19:27
JeezyWonder7-Feb-17 19:27 
AnswerRe: (C#) How to make this kind of design and functions Pin
Richard MacCutchan7-Feb-17 21:44
mveRichard MacCutchan7-Feb-17 21:44 
QuestionHow do I synchronize multi user GUI controls automatically when changes happen into database from any of the user? Pin
Member 102589347-Feb-17 3:10
Member 102589347-Feb-17 3:10 
QuestionRe: How do I synchronize multi user GUI controls automatically when changes happen into database from any of the user? Pin
Richard MacCutchan7-Feb-17 3:15
mveRichard MacCutchan7-Feb-17 3:15 
AnswerRe: How do I synchronize multi user GUI controls automatically when changes happen into database from any of the user? Pin
Eddy Vluggen7-Feb-17 3:32
professionalEddy Vluggen7-Feb-17 3:32 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.