I have used CalendarDatePicker with CalendarIdentifier="PersianCalendar" in my UWP app:
<CalendarDatePicker x:Name="btnDatePicker" CalendarIdentifier="PersianCalendar" PlaceholderText="..." IsTodayHighlighted="False"></CalendarDatePicker>
Everything works fine until the user selects a Persian date and then CalendarDatePicker displays the Gregorian date.
Any help or insight is much appreciated.
As you can find here, there is "Persian" calendar available, however I did not find any way to set CalendarIdentifier to Persian in Xaml, but it's possible to set it in Code Behind:
btnDatePicker.CalendarIdentifier = CalendarIdentifiers.Persian;
and everything should work fine:
Related
I am using flutter to build an app, so therefore I am also using dart. I need to use the DateTime class for a calendar.
When I execute the following line of code:
print(DateTime.now())
It prints:
2022-12-29 15:27:11.147472
I executed this code on 2023-01-04 and I executed the code at about 3:03 pm.
How do I fix this?
Thanks!
The issue was that the simulator that I was running the program on had the wrong date so it made the app show the wrong date as well.
Thank you to Soliev for helping me with the issue!
There might be a problem with the device's system clock. Make sure that the device's system clock is set to the correct date and time.
There might be a problem with the device's time zone settings. Make sure that the device's time zone settings are correct.
There might be a problem with the app's code. Double-check the code to make sure that there are no errors or bugs that could be causing the incorrect date and time to be returned
I am using input type date which is opening calendar for me. I am setting the current value by setting it in backend and passing as a model property. It is working fine.
Now, I have implemented localization with arabic version. Every thing works fine on local. When I deployed the project, calendar is showing in hijri.
I have tried to convert it to en-Us culture but it is still showing same.
I am currently developing an application with Flutter where I use the Google Maps API but I am having a problem with the display of data.
Indeed in my application it displays the arrival time (arrival_time) like this: 7:19pm.
But I would like it to display in this form: 19:19
Same for the travel time (duration) it displays 1hour24mins but I would like it to display 1h24.
How do I deal with these problems?
Thanks a lot for your help
Cordially
Thibault
Here is a screenshot:
If you can transform this dates to DateTime, then you could use intl package to transform the time.
For instance:
DateTime t = DateTime.now();
print(DateFormat.Hm().format(t));
This prints the time in 24 hours format.
You would also probably be able to also transform it to XhYm too.
Thanks a lot for your help.
So there you have it, I tried your solutions but it doesn't work.
What is strange is that when I call the API with a browser (Chrome) it displays the correct time (16:48).
But when I try in the app it returns 4:48 pm.
And suddenly I don't know how to solve this problem.
So if there are any additional parameters to pass, I would like to have them.
Thank you for your time
Cordially
Thibault
in my application i need to implement calendar concept.i found this site http://blog.webscale.co.in/?p=244&cpage=1#comment-827 and i need to get the current month,year value but i cant get them can any help i solving this problem will be appreciated.
in this i can get only currentmonth,currentyear value(i.e 6-5-2011)today date
Try these projects -
https://github.com/voidparadox/Si-Calendar
https://github.com/klazuka/Kal
https://github.com/devinross/tapkulibrary
I am developing an application in which I input text; when I hit enter it will speak. Does anyone know any sound engine or source code I should include so that it will talk? I have been trying to make this for the last four months but am not able to get it working. Please help me with this.
Have you tried using FLITE? It's easy to use and works quite well.