I have a table with columns Hijri date and Gregorian date. I want a select query to fetch the Hijri date from this table by passing the Gregorian date. I will pass the Gregorian date as a parameter from my code in C#.
Sql query to get the arabic date for the gregorian date from a database
2.7k views Asked by Kondapalli Santu At
1
There are 1 answers
Related Questions in C#
- How to call a C language function from x86 assembly code?
- What does: "char *argv[]" mean?
- User input sanitization program, which takes a specific amount of arguments and passes the execution to a bash script
- How to crop a BMP image in half using C
- How can I get the difference in minutes between two dates and hours?
- Why will this code compile although it defines two variables with the same name?
- Compiling eBPF program in Docker fails due to missing '__u64' type
- Why can't I use the file pointer after the first read attempt fails?
- #include Header files in C with definition too
- OpenCV2 on CLion
- What is causing the store latency in this program?
- How to refer to the filepath of test data in test sourcecode?
- 9 Digit Addresses in Hexadecimal System in MacOS
- My server TCP doesn't receive messages from the client in C
- Printing the characters obtained from the array s using printf?
Related Questions in SQL-SERVER
- Dynamic query creation with Array like implementation
- 'pyodbc.Cursor' object has no attribute 'callproc', mssql with django
- Driver com.microsoft.sqlserver.jdbc.SQLServerDriver claims to not accept jdbcUrl, ${SPRING_DATASOURCE_URL}: GitHub Actions
- PHP Laravel SQLServer could not find driver
- Upsert huge amount of data by EFCore.BulkExtensions
- How to locate relevant tables or columns in a SQL Server database
- Cannot delete SQL datafile (.mdf) as its currently in use
- Writing query in CTE returning the wrong output
- Group By Sum and without Group by sum Amount is different
- plan_handle is always different for each query in SQL Server Cache
- Adding a different string to a table fails
- The specified data type in the EF modelBuilder doesn't correspond to the one that is created
- SQL71561: SqlComputedColumn: When column selected
- How to Solve Error Associated with Trusted Authority
- SQL Server Data Model and Insert Performance
Related Questions in GREGORIAN-CALENDAR
- Different date in local and the server java date time
- Writing old dates to a Delta table using Pyspark throws an error, even when using the recommended datetimeRebaseModeInWrite configuration
- How to Covert from prolepticGregorian to datetime
- How to show Hijri and Gregorian dates together using react native
- Inconsistent behaviour of GregorianCalendar when created from ZonedDateTime
- Is there a way to correctly count number of days in 1582
- Format to display full month of Gregorian dates (wall calendar style) in Arabic or Hebrew
- How to add printing of number of days in a year also for leap years?
- Get timestamp in PySpark from GregorianCalendar
- How to convert a timestamp to years, month, days and hours in Android?
- How to add days and get timestamp in Android?
- How to set calendar at global level in SSRS report (RDL file)
- AWS DataBrew auto-formats XLSX DateTime column to string java.util.GregorianCalendar[time=... (GregorianCalendar) how do I format back in recipe?
- Why GregorianCalendar randomly add "Z" at the end of date and sometimes don't
- java.sql.Date and Time Timezone differs
Related Questions in HIJRI
- One day difference in Converting Gregorian to Hijri date using Intl.DateTimeFormat
- React native: Islamic/Hijri date to Gregorian date only available from Hijri 1355H
- Unable to parse some Umm Al-Qura dates in java, getting Invalid Hijrah day of month error
- Valid Hijri Date shown as invalid in moment-hijri
- com.github.msarhan.ummalqura.calendar.DateTimeException: Invalid Hijrah day of month: 30
- Angular Material datepicker Hijri date bug
- How to change Android to show date based on Hijri Calendar?
- how to write a funtion to get each regions date by calling it in it's own language?
- Android: how to get Islamic/Hijrah date for India
- How to show Hijri and Gregorian dates together using react native
- I want to implement islamic calendar in flutter
- How to create data frame contains gregorian and Hijri dates in python
- How to show Islamic (Hijri) calendar in datePickerDialog in Android?
- How to show Hijri Calendar in DatepickerDialog view in Android using jetpack compose?
- How to use implement hijri datepicker on vue3 app?
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
SqlServer can convert Gregorian date into Hijri by using the
CONVERTfunction and supplying the appropriate style 130 or 131. See also the MSDN documentation.Assuming you have stored your dates in Gregorian calendar in your database you can use this to get the Hijri date:
If you want something else you need to be more specific.
The answer to this question shows some examples of how to perform datetime convertions with Hijri in .NET.