Create function to get current format