PIC : problem with initialize internal RTC of PIC18F67k22
According to some RTCC documentation that I found for that library both the date and time values should be specified in binary-coded decimal. Read up on BCD encoding so that you understand how it works but for the moment to confirm that's the problem try the following code:

RtccTimeDate.f.hour = 0x02;
RtccTimeDate.f.min =  0x03;
RtccTimeDate.f.sec =  0x04;
RtccTimeDate.f.mday = 0x05;
RtccTimeDate.f.mon =  0x06;
RtccTimeDate.f.year = 0x14;


While I have changed all the values for clarity it's only the year that actually changes for your example value. The value 14 in decimal is 0x0E in hex which isn't a valid BCD value. You could use something like the following (untested) macro to covert to BCD:

#define TO_BCD(x) ((((x) / 10) &lt;&lt; 4) + ((x) % 10))
RtccTimeDate.f.year = TO_BCD(14);