• ### Announcements

#### Archived

This topic is now archived and is closed to further replies.

# date and time

## Recommended Posts

anekin    122
I''m porting some VB code to VC but I''m stuck in a place. In VB, it exists a built-in function to extract the DAY from a variable of type Date. I want to know if possible to do the same in VC. For example, if the function receive as input ''12/21/2002'' or any combination, I want to extract the ''21'' from that variable. Any information it would be helpful for me

  char *input = "12/21/2002";int date;sscanf(input,"%*d%*c%d",&date);