Home > SQL Server > Convert Hijri Data To Gregorian And Reversal

Convert Hijri Data To Gregorian And Reversal


Hi all,

try this Example to Convert Hijri Data To Gregorian And Reversal using MS SQL Server

** To Convert Hijri Data To Gregorian  we can write this query which will do that :-

select convert(datetime,'22/02/1432',131)

** To Convert from Gregorian Date to Hijri date we can write is sql query :-

select convert(nvarchar(15),getdate(),131)

Hope this helps

GoodLuck

Advertisements
Categories: SQL Server
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: