cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
rizwanmgm
Frequent Visitor

DateValue Issue in different browsers

Dear Expert,

 

I am facing the datevalue issue in firefox and explorer, chrome is working fine.

please see the attach image.

the code is below:

Set(varFirstDateOfMonth,Date(Year(Today()), Month(DateValue(Dropdown1.SelectedText.Value)), 1));
Set(varFirstDayOfMonth,Text(varFirstDateOfMonth,"[$-en-US]dddd"));

 

Please help

 

1 ACCEPTED SOLUTION

Accepted Solutions
Pstork1
Dual Super User III
Dual Super User III

Translating the Month value just requires a number, not an actual DateValue.  Use the following formula and it will work.

 

Set(varFirstDateOfMonth,Date(Year(Today()), Value(Dropdown1.Selected.Value), 1));
Set(varFirstDayOfMonth,Text(varFirstDateOfMonth,"[$-en-US]dddd"));

 



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

View solution in original post

3 REPLIES 3
Pstork1
Dual Super User III
Dual Super User III

Translating the Month value just requires a number, not an actual DateValue.  Use the following formula and it will work.

 

Set(varFirstDateOfMonth,Date(Year(Today()), Value(Dropdown1.Selected.Value), 1));
Set(varFirstDayOfMonth,Text(varFirstDateOfMonth,"[$-en-US]dddd"));

 



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

View solution in original post

Thanks for reply,

Working fine now

Pstork1
Dual Super User III
Dual Super User III

It works in Firefox for me.  Double check the formula you are using for the month.  It needs to be a number not a DateValue.



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

secondImage

Are Your Ready?

Test your skills now with the Cloud Skill Challenge.

Top Solution Authors
Top Kudoed Authors
Users online (50,658)