User Profile
Collapse
-
silvergost replied to Why do I get an parse error in the first line? Please help. Thanks in advance.in PHPThanks for the confidence in me. At least I can gather from your reply that what I whant to do is possible. -
silvergost replied to Why do I get an parse error in the first line? Please help. Thanks in advance.in PHPThanks for the reply Mark,
I simply just wanted to convert a Date YYYYMMDD to an Excel serial date, using .php code. I'm not having much success as I am new to .php.Leave a comment:
-
silvergost started a topic Why do I get an parse error in the first line? Please help. Thanks in advance.in PHPWhy do I get an parse error in the first line? Please help. Thanks in advance.
Code:<?php int DMYToExcelSerialDate(int nDay, int nMonth, int nYear) { // Excel/Lotus 123 have a bug with 29-02-1900. 1900 is not a // leap year, but Excel/Lotus 123 think it is... if (nDay == 29 && nMonth == 02 && nYear==1900) return 60; // DMY to Modified Julian calculatie with an extra substraction of 2415019. long nSerialDate =
No activity results to display
Show More
Leave a comment: