I have developed a program to convert gregorian date to islamic and vice-versa. I had to make certain calculations on the day, month and year.....
Now I have the date in three variables say, day, month and year. And I have to concatenate this and convert to date type...... This is where the problem is. How should I concatenate the day, month and time so that it's in the correct format as the system can accept.
Supporting example:
If I concatenate them as dd/mm/yy then and the systems date format is mm/dd/yy, the system will generate error for dd=20 (date), because when I concatenated, it went to the place where month should be..... so it has to be dynamic as according to the date format of the system. Is there any method to get the date format of the system???
0
Comments
then when you have to valorize the date you can refer to the value of the boolean and select the correct format.
this method function only with non-empty DB.
It's a nice workaround as I don't know how to get the regional settings of windows... :oops:
"Never memorize what you can easily find in a book".....Or Mibuso
My Blog
I soved it!!!
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
Thanks again....